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
On Mon, 6 Jun 2005 12:27:00 -0700, David L. Cassell
<cassell.david@EPAMAIL.EPA.GOV> replied in part to Venky Chakravarthy's
>> 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
>> 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 ;
>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 ...."
>David Cassell, CSC
>Senior computing specialist