Date: Wed, 5 Sep 2001 13:51:52 -0400
Reply-To: Gerhard Hellriegel <ghellrieg@T-ONLINE.DE>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Gerhard Hellriegel <ghellrieg@T-ONLINE.DE>
Subject: Re: Q on using part of filename as variable
I think today I have a problem with my head! What's the question there? Ok,
a little correction, you should include the libd.t200109 in quotes, but why
so complicated? You want to have 200109 in a variable. Just use:
newvar="200109";
That can not be your question!
On Wed, 5 Sep 2001 10:30:50 -0700, RAHUL CHAHAL <rahulchahal@YAHOO.COM>
wrote:
>Probably been asked before but wanted to know how I
>could do the following
>
>libname libd 'D:\Rahul';
>
>data tmp1;
> set libd.t200109;
> newvar=reverse(substr(reverse(libd.t200109,1,6));
> run;
>
>The value of newvar should be 200109. We have v8.2 on
>windows nt ... in case there are any functions I can
>utilize. Thanks in advance.
>Regards.
>-Rahul
>
>
>__________________________________________________
>Do You Yahoo!?
>Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
>http://im.yahoo.com
|