How to use syntax to set variable order

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

How to use syntax to set variable order

Jim-208
I would like to move a few variables from the bottom of my dataset up next
to a couple of other variables near the top of my dataset using syntax. Is
there an easy way to do this through syntax?

I expected it to be in the VARIABLE ATTRIBUTE command and I looked through
the syntax reference guide but I didn't find what I was hoping to see.

Thanks.

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: How to use syntax to set variable order

Bruce Weaver
Administrator
Jim-208 wrote
I would like to move a few variables from the bottom of my dataset up next
to a couple of other variables near the top of my dataset using syntax. Is
there an easy way to do this through syntax?

I expected it to be in the VARIABLE ATTRIBUTE command and I looked through
the syntax reference guide but I didn't find what I was hoping to see.

Thanks.
You can do it via MATCH (or ADD) FILES.  E.g.,

match files file = * /
 keep = v1 v2 v21 to v25 all .
exe.

--
Bruce Weaver
bweaver@lakeheadu.ca
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

PLEASE NOTE THE FOLLOWING: 
1. My Hotmail account is not monitored regularly. To send me an e-mail, please use the address shown above.
2. The SPSSX Discussion forum on Nabble is no longer linked to the SPSSX-L listserv administered by UGA (https://listserv.uga.edu/).
Reply | Threaded
Open this post in threaded view
|

Re: How to use syntax to set variable order

John F Hall
You can also do it inside the Data Editor by highlightling the variables you want to move, press [ctrl]+x or right click (cut) then move the arrow to where you want them to be and press [ctrl]+v or right click (paste)
----- Original Message -----
Sent: Friday, September 18, 2009 10:25 PM
Subject: Re: How to use syntax to set variable order


Jim-208 wrote:

>
> I would like to move a few variables from the bottom of my dataset up next
> to a couple of other variables near the top of my dataset using syntax. Is
> there an easy way to do this through syntax?
>
> I expected it to be in the VARIABLE ATTRIBUTE command and I looked through
> the syntax reference guide but I didn't find what I was hoping to see.
>
> Thanks.
>
>

You can do it via MATCH (or ADD) FILES.  E.g.,

match files file = * /
 keep = v1 v2 v21 to v25 all .
exe.



-----
--
Bruce Weaver
[hidden email]
http://sites.google.com/a/lakeheadu.ca/bweaver/
"When all else fails, RTFM."

NOTE:  My Hotmail account is for posting only, and is not monitored
regularly.
If you wish to send me an e-mail, please use the address shown in my sig
file.
--
View this message in context: http://www.nabble.com/How-to-use-syntax-to-set-variable-order-tp25514130p25514995.html
Sent from the SPSSX Discussion mailing list archive at Nabble.com.

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD

Reply | Threaded
Open this post in threaded view
|

Re: How to use syntax to set variable order

Jim-208
In reply to this post by Jim-208
That worked perfectly. Thanks for the suggestion.

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD