LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (June 2006)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: james.moffitt@thomson.com
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.


Back to: Top of message | Previous page | Main SPSSX-L page