Date: Wed, 2 Aug 2000 09:28:35 -0400
Reply-To: Richard.Graham@INTELLICISIONS.COM
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Richard W. Graham" <Richard.Graham@INTELLICISIONS.COM>
Subject: Re: IIF function
Content-type: multipart/mixed;
Boundary="0__=5VgRikW9pimyHQMeFbGM0LWTCMPJK3iekBsljUsHyZoxey5IruS0bsEI"
Theo,
Have you looked at the select statement in the data step?
try:
data b;
set a;
select var1; /* assume var1 is $1 */
when ('x') do;
actions;
end;
when ('y') action;
when ('z') do;
actions;
end;
otherwise;
end;
run;
Richard W. Graham
Senior Consultant, Technology Delivery
Intellicisions Data Inc.
2000 Regency Parkway, Suite 355
Cary, NC 27511
(919) 467-0505
(Embedded image moved to file: pic31318.gif)
t_woods@MY-DEJ
A.COM To: SAS-L@LISTSERV.UGA.EDU
Sent by: cc: (bcc: Richard Graham/Tech/Intellicisions)
"SAS(r) Subject: IIF function
Discussion"
<SAS-L@LISTSER
V.UGA.EDU>
08/02/00 05:28
AM
Please respond
to t_woods
Hi,
Can anyone tell me if the IIF(cond,expr1,expr2) is possible in SAS 6.12.
(or maybe in SAS 8.0)?
If not, Is there an alternative (apart from IF..ELSEIF statements?
Thanks a lot,
Theo
Sent via Deja.com http://www.deja.com/
Before you buy.
pic31318.gif [image/gif]