Date: Wed, 21 Mar 2007 11:50:37 -0400
Reply-To: ben.powell@CLA.CO.UK
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: ben.powell@CLA.CO.UK
Subject: Re: Passing the SAS File name in a variable..
Oh right, I assumed he wanted the flat file name. I happened to have a
program open with that in it. If he wants the sas dataset name then he just
needs the directory of the work lib or permanent library, the dataset name
and the file ending. Dictionary tables may be of some use but I have to
ask, "But why do you want to that?"...
No more shots from the hip today,
Rgds.
On Wed, 21 Mar 2007 11:04:46 -0400, Gerhard Hellriegel
<gerhard.hellriegel@T-ONLINE.DE> wrote:
>I seem to be the only one who does not understand what is meant with "SAS
>file". Everybody but me seems to understand NOT a "SAS" file, but a simple
>sequential flat-file. Is that right? Ben seems to be lucky with that, he
>does not say anything about it!
>Gerhard
>
>
>On Wed, 21 Mar 2007 10:25:58 -0400, ben.powell@CLA.CO.UK wrote:
>
>>%let path=C:\temp;
>>data a;
>>length filename nm $100.;
>>infile "&path\*.txt" filename=filename;
>>informat temp $20.;
>>input temp;
>>nm=filename;
>>run;
>>
>>HTH.
|