| 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 ? |
|
| 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;
>
|