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 (October 2007)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 23 Oct 2007 19:31:58 -0700
Reply-To:     Hal 9000 <9000.hal@gmail.com>
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         Hal 9000 <9000.hal@gmail.com>
Subject:      Re: IF THEN
Comments: To: "Lacay, Phebe" <placay@raritanval.edu>
In-Reply-To:  <CF0169FB59E9C1418296115FDF51F69D04C0FDAF@exchr.raritanval.edu>
Content-Type: text/plain; charset=ISO-8859-1

lose the "then"s. Also, it looks like CNTY is a string variable, so "missing" would be an empty string ( '' ).

If any(CNTY, '', '999') & STATE = '99' CNTY= '00'. If any(CNTY, '', '999') & STATE = '99' then CNTY='00'. If any(CNTY, '', '999') & STATE = '34' then CNTY='88. exe.

good luck! -Gary

On 10/23/07, Lacay, Phebe <placay@raritanval.edu> wrote: > Hi all, > > It's me again. > > > > I am trying to do a recode. I am not sure if I should be doing a DO > IF?? > > Any suggestions? > > > > (all are string) > > If CNTY=missing or '999' and STATE= '99' then CNTY='00' > > If CNTY=missing or '999' and STATE='34' then CNTY='88 > > If CNTY=missing or '999' and STATE~='34' then CNTY='99' > > > > Thanks, > > Phebe > > > > > > 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


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