LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (February 2004, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Sat, 28 Feb 2004 01:32:59 GMT
Reply-To:     Barry Schwarz <schwarzb@DELOZ.NET>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Barry Schwarz <schwarzb@DELOZ.NET>
Subject:      Re: Range checking question
Content-Type: text/plain; charset=us-ascii

On 26 Feb 2004 15:30:03 -0800, mixiao@ucla.edu (miranda) wrote:

>Hi, >I have a data field RAN004 valuse like nelow : > >RAN004 > >01C >04C snip >01c >02c >05B >03B > >The range of this field is 01A~99C, >How could I check this field and report those out of range value like >01F,03H,05G,03D,04K ? > >Thanks.

x1 = substr(ran004,1,1); x2 = substr(ran004,2,1); x3 = substr(ran004,3,1); if x1 < '0' | x1 > '9' | x2 < '0' | x2 > '9' | x3 < 'A' | x3 > 'Z' then ...

<<Remove the del for email>>


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