|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 ?|
|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 data, and description of the error, please...
On Mon, May 4, 2009 at 9:23 AM, ash007 <RamsamyAshley@gmail.com> wrote:
> how can I remove the last 4 characters.
> this code doesn't work.
> data datasetlist_new;
> set datasetlist;
> if upcase(x) = "TEMP" then y = substr(Name,1,length(Name)-4);