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 2000, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: t_woods@MY-DEJA.COM
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]


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