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.
Try this:
add files /file=* /keep=YourFirstVar to v111 YourNewVar v112 to YourLastVar.
Shorter version:
add files /file=* /keep=YourFirstVar to v111 YourNewVar ALL.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With