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 08:46:47 -0500
Reply-To:     "Scheltema, Karen" <KScheltema@HEALTHEAST.ORG>
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         "Scheltema, Karen" <KScheltema@HEALTHEAST.ORG>
Subject:      Re: How to reduce the syntax on if command
Comments: To: Paul Yeo <paulyeo@CYBERWAY.COM.SG>
Content-Type: multipart/alternative;

If the variables are contiguous,

recode s_1 to s_12 (.0001 thru hi=1) into s1 to s12.

Karen Scheltema, M.A., M.S. HealthEast Research and Education 1700 University Ave W St. Paul, MN 55104 (651) 232-5212 (phone) (651) 641-0683 (fax) kscheltema@healtheast.org

-----Original Message----- From: Paul Yeo [mailto:paulyeo@CYBERWAY.COM.SG] Sent: Thursday, June 28, 2001 12:39 AM To: SPSSX-L@LISTSERV.UGA.EDU Subject: How to reduce the syntax on if command

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 . exe.

TIA

PAul Yeo


[text/html]


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