Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Placing new variable in specific position

I am computing a new variable in the SPSS syntax. If I execute the command the new variable shows up at the bottom of my list of variables. I want the variable between two already existing variables, let's say v111 and v112.
How do I write this in my syntax?
I realize this might be a very simple thing to do but I couldn't find the answer anywhere.

like image 411
Larissa Avatar asked Feb 20 '26 05:02

Larissa


1 Answers

Try this:

add files /file=* /keep=YourFirstVar to v111 YourNewVar v112 to YourLastVar.

Shorter version:

add files /file=* /keep=YourFirstVar to v111 YourNewVar ALL.
like image 101
eli-k Avatar answered Feb 22 '26 01:02

eli-k



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!