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 (May 2009, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Mon, 4 May 2009 09:29:15 -0500
Reply-To:   Joe Matise <snoopy369@GMAIL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Joe Matise <snoopy369@GMAIL.COM>
Subject:   Re: what wrong with my code ?
Comments:   To: ash007 <RamsamyAshley@gmail.com>
In-Reply-To:   <99e5917a-4f09-4761-87f4-b6929a159e2f@t11g2000vbc.googlegroups.com>
Content-Type:   text/plain; charset=ISO-8859-1

You may want to explain in what way it doesn't work. That will work for some data. It won't work if NAME is too short (well, it will work, but it will give missing result for those records where NAME is too short), for example.

Example data, and description of the error, please...

-Joe

On Mon, May 4, 2009 at 9:23 AM, ash007 <RamsamyAshley@gmail.com> wrote:

> Hi, > > how can I remove the last 4 characters. > > this code doesn't work. > > thanks. > > > data datasetlist_new; > set datasetlist; > if upcase(x) = "TEMP" then y = substr(Name,1,length(Name)-4); > run; >


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