Date: Thu, 10 Apr 2008 11:59:17 -0500
Reply-To: Melissa Ives <mives@chestnut.org>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Melissa Ives <mives@chestnut.org>
Subject: Re: string into numeric & copy of variable label
In-Reply-To: <E0428445172CB7469BF187FF4D005149081223F0@CHIEMAIL1.spss.com>
Content-Type: text/plain; charset="us-ascii"
That would work, but would code 1=NO and 2=YES (alphabetical).
If you then recoded, you'd still need to reset the value labels.
Value labels n151 n152 n153 n153b1 1 'Yes' 0 'No'.
Melissa
-----Original Message-----
From: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU] On Behalf Of Oliver, Richard
Sent: Thursday, April 10, 2008 11:51 AM
To: SPSSX-L@LISTSERV.UGA.EDU
Subject: Re: [SPSSX-L] string into numeric & copy of variable label
Try AUTORECODE.
-----Original Message-----
From: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU] On Behalf Of Frank Thomas
Sent: Thursday, April 10, 2008 11:31 AM
To: SPSSX-L@LISTSERV.UGA.EDU
Subject: string into numeric & copy of variable label
I have to convert a large number of string variables coded Y and N into numeric variables which I do with :
recode v151 v152 v153 v153b1 ('Y'=1)('N'=0) (else=-9) into n151 n152
n153 n153b1.
But how can I also copy the variable label from v151 to n151 using syntax ?
Thanks
F. Thomas
--
..........................................
Dr. Frank Thomas
FTR Internet Research
93110 Rosny-sous-Bois
France
=====================
To manage your subscription to SPSSX-L, send a message to LISTSERV@LISTSERV.UGA.EDU (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
=====================
To manage your subscription to SPSSX-L, send a message to LISTSERV@LISTSERV.UGA.EDU (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
PRIVILEGED AND CONFIDENTIAL INFORMATION
This transmittal and any attachments may contain PRIVILEGED AND
CONFIDENTIAL information and is intended only for the use of the
addressee. If you are not the designated recipient, or an employee
or agent authorized to deliver such transmittals to the designated
recipient, you are hereby notified that any dissemination,
copying or publication of this transmittal is strictly prohibited. If
you have received this transmittal in error, please notify us
immediately by replying to the sender and delete this copy from your
system. You may also call us at (309) 827-6026 for assistance.
=====================
To manage your subscription to SPSSX-L, send a message to
LISTSERV@LISTSERV.UGA.EDU (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