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 (September 2001, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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 >

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