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 (June 2005, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 7 Jun 2005 08:41:43 -0400
Reply-To:     Venky Chakravarthy <swovcc@HOTMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Venky Chakravarthy <swovcc@HOTMAIL.COM>
Subject:      Re: using Perl regex to validate values in SAS 9.1
Comments: To: "David L. Cassell" <cassell.david@EPAMAIL.EPA.GOV>

On Mon, 6 Jun 2005 12:27:00 -0700, David L. Cassell <cassell.david@EPAMAIL.EPA.GOV> replied in part to Venky Chakravarthy's question: >> Do we really need Perl Regex? > >No. We don't.

That is quite a concession from a Perl Bigot :-).

> >> Shouldn't the following humble data >step, not >> achieve the same results? > >Yes. It should. > >> data wrongrecords ; >> set staff ; >> if missing(phone1) or missing(phone2) then delete ; >> if (input(phone1,??12.)=.) or (input(phone2,??12.)=.) then output ; >> run ; > >Yep. > >Or else VERIFY() or COMPRESS() could be used to do the validation. >As has been suggested in prior variants of this thread.

Okay, I will admit that I did not read all the replies having rejoined the list in a contributory mode only days ago. I now see that one notable poster has also suggested a character function. However, the subject line screams "... Perl regex ...."

Venky

> >David >-- >David Cassell, CSC >Cassell.David@epa.gov >Senior computing specialist >mathematical statistician


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