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 (October 2003, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 28 Oct 2003 12:34:10 -0700
Reply-To:     Richard Read Allen <peakstat@WISPERTEL.NET>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Richard Read Allen <peakstat@WISPERTEL.NET>
Subject:      Re: vname, vnamex?
Comments: To: Charles Patridge <charles_s_patridge@PRODIGY.NET>
Content-Type: text/plain; charset="us-ascii"; format=flowed


I did not overlook this, but rather was looking for a more elegant solution than writing a bunch of if statements for all possible values of x. The real values of x are much longer in length and the list of possible values much larger than three.


At 02:22 PM 10/28/2003 -0500, Charles Patridge wrote: >Richard, > >You might be trying too hard - try this - > >data test; > input x $ a b c; > if x = 'a' and a ge 5; > > cards; >a 8 3 4 >a 4 6 7 >b 3 3 2 >b 3 9 5 >c 2 2 9 >;;;; >run; > > >HTH, >Charles Patridge

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