Date: Fri, 30 Jun 2006 11:35:11 -0400
Reply-To: Edward Boadi <eboadi@abhct.com>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Edward Boadi <eboadi@abhct.com>
Subject: Re: Create new variable with values that are 1 less than values
of existing variable
Content-Type: text/plain; charset="iso-8859-1"
This Works :
DATA LIST list / q66(f2.0) q67(f2.0) q68(f2.0).
BEGIN DATA
66 67 68
END DATA.
compute q66Fixed = q66-1.
compute q67Fixed = q67-1.
compute q68Fixed = q68-1.
execute.
LIST.
**Out Put********** .
66 q67 q68 q66Fixed q67Fixed q68Fixed
66 67 68 65.00 66.00 67.00
Number of cases read: 1 Number of cases listed: 1
Edward.
-----Original Message-----
From: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU]On Behalf Of
Jim Moffitt
Sent: Friday, June 30, 2006 11:25 AM
To: SPSSX-L@LISTSERV.UGA.EDU
Subject: Create new variable with values that are 1 less than values of
existing variable
I've run the following syntax only to get the same values in my "fixed"
variables as in the original variables?
compute q66Fixed = q66-1.
compute q67Fixed = q67-1.
compute q68Fixed = q68-1.
execute.
What am I doing wrong?
Thanks for your help.