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