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 (January 2009, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Mon, 26 Jan 2009 14:41:01 -0500
Reply-To:   Akshaya Nathilvar <akshaya.nathilvar@GMAIL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Akshaya Nathilvar <akshaya.nathilvar@GMAIL.COM>
Subject:   Re: Deleting Observations with Characters
Comments:   To: jasonm@ucla.edu
In-Reply-To:   <20090126112755.t9cv695vvo8kg88k@mail.ucla.edu>
Content-Type:   text/plain; charset=ISO-8859-1

One way to get this done is using PRXMATCH function. Data want; input value $; if prxmatch("/[a-zA-Z]/",value)=0; /* Searches for a pattern match and returns the position at which the pattern is found */ cards; 1023442 92z89 abcd 5231295 09CX42 98722 ;

AkshayA!

On Mon, Jan 26, 2009 at 2:27 PM, J M <jasonm@ucla.edu> wrote:

> How can delete observations containing characters (eg 92z89 or abcd)? > I just want to keep observations with numeric values. > Thanks. >


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