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 (August 2004, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 30 Aug 2004 21:13:32 GMT
Reply-To:     LWn <lars.wahlgren.pleasenospam@STAT.LU.SE>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         LWn <lars.wahlgren.pleasenospam@STAT.LU.SE>
Organization: Telia Internet
Subject:      Re: if,esle-if statment question

Use DO ; statement1 ; statement2 ; ... END ;

if max(a)<20 then DO ; p=0 ; q=5 ; END ; else p=1;

hth / LWn

"Rick Kim" <wjin2@unity.ncsu.edu> skrev i meddelandet news:ch03ol$gmo$1@uni00nw.unity.ncsu.edu... > In SAS, we have > > IF expression THEN statement1 ; > ELSE statement2 ; > > For instance: > if max(a)<20 then p=0; > else p=1; > > My question is what if I need to put more than one statement after If > expression, like: > > if max(a)<20 then p=0 q=5; > else p=1; > > Is there a way to achieve this? > > Thanks, > > Rick > >


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