Date: Wed, 2 Mar 2005 07:48:32 -0600
Reply-To: "Peck, Jon" <peck@spss.com>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: "Peck, Jon" <peck@spss.com>
Subject: Re: Assign labels dinamically
Content-Type: text/plain; charset="us-ascii"
The strict answer to your question is no, but only because the procedure to do this predates SPSS 13. The APPLY DICTIONARY command (Data/Copy Data Properties in the gui), was extended in SPSS 12 or 11.5 to allow copying selected properties from one variable to one or more other variables. For example,
APPLY DICTIONARY
/FROM *
/SOURCE VARIABLES = vara
/TARGET VARIABLES = varb
/VARINFO VALLABELS = REPLACE .
copies the value labels from vara in the working data file to varb.
You can use the working data file as the source or any SAV file. This makes it easy to set up a SAV file containing a library of variable definitions and then apply these to new files.
Regards,
Jon Peck
-----Original Message-----
From: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU] On Behalf Of Luca Meyer
Sent: Wednesday, March 02, 2005 7:33 AM
To: SPSSX-L@LISTSERV.UGA.EDU
Subject: [SPSSX-L] Assign labels dinamically
I am just curious if there is some new function/procedure in SPSS 13 which
allows to assign to variables the labels of other variables, for instance
something like:
VAR LABELS V1=LABEL(V0)
Thank you :-)
Luca
Mr. Luca MEYER
Survey research, data analysis & more: http://www.lucameyer.com/
Tel: +390122854456 - Fax: +390122854837 - Mobile: + 393394950021
- One world, one human race -