Specific variable ordering

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

Specific variable ordering

Erwan LE DÛ
Hi all,

I have an issue with variable ordering. I have a file where the variables
are sorted in alphabetical order and I need them to order them in a specific
manner.
I rearranged them once and tried with the ADD FILES command and the /KEEP
keyword but the vars were not placed in the right columns !

Let's say :

A B C D E F G

and I want the order to be :

B D A C F G E

ADD FILES FILE='testfile.sav'

/FILE= *

/KEEP

B D A C F G E

ALL.

Thanks for your help.
Ker
Reply | Threaded
Open this post in threaded view
|

Re: Specific variable ordering

Oliver, Richard
The complete results of ADD FILES are not apparent until you run some command that reads the data, such as a statistical procedure or SAVE or EXECUTE.

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Erwan LE DÛ
Sent: Friday, October 12, 2007 8:11 AM
To: [hidden email]
Subject: Specific variable ordering

Hi all,

I have an issue with variable ordering. I have a file where the variables
are sorted in alphabetical order and I need them to order them in a specific
manner.
I rearranged them once and tried with the ADD FILES command and the /KEEP
keyword but the vars were not placed in the right columns !

Let's say :

A B C D E F G

and I want the order to be :

B D A C F G E

ADD FILES FILE='testfile.sav'

/FILE= *

/KEEP

B D A C F G E

ALL.

Thanks for your help.
Ker