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 2001)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 28 Jun 2001 07:53:06 -0500
Reply-To:   FUTRELL_DAVID_A@LILLY.COM
Sender:   "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:   David Futrell <FUTRELL_DAVID_A@LILLY.COM>
Subject:   Re: How to reduce the syntax on if command
Content-type:   multipart/alternative;

<< Hi all list member , i have following syntax , which i like to find out how can i simplify it , So that it will not run the if command so many time.

IF s_1>0 s1 =1 . IF s_2>0 s2 =1 . IF s_3>0 s3 =1 . IF s_4>0 s4 =1 . IF s_5>0 s5 =1 . IF s_6>0 s6 =1 . IF s_7>0 s7 =1 . IF s_8>0 s8 =1 . IF s_9>0 s9 =1 . IF s_10>0 s10 =1 . IF s_11>0 s11 =1 . IF s_12>0 s12 =1 . >>

How about this?

RECODE s_1 to s_12 (0=1) into s1 to s12.


[text/html]


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