Date: Wed, 3 May 2000 10:19:43 -0400
Reply-To: Abelson_R <Abelson_R@BLS.GOV>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Abelson_R <Abelson_R@BLS.GOV>
Subject: Re: List files in SAS
Content-Type: text/plain
Daniella,
You can use the FILENAME with the PIPE option to get the files in your
directory:
(UNTESTED CODE FOLLOWS)
filename danifile pipe "dir/b c:\dani";
data dani;
infile danifile;
/* allow for long file names */
input @1 _filenam $char100.;
run;
HTH.
Robert Abelson
Bureau of Labor Statistics
abelson_r@bls.gov
"Special Relativity: The person in the other queue thinks yours is moving
faster."
> ----------
> From: Daniella Priscila Cruz - Estagiaria
> SAS[SMTP:dpcruz@CENAPAD.UNICAMP.BR]
> Sent: Wednesday, May 03, 2000 9:58 AM
> To: SAS-L@LISTSERV.UGA.EDU
> Subject: List files in SAS
>
> Hello list,
> I want to know if I can to do a list in SAS with files that is in
> my directory.
> Example:
> In my directory I have two files:
> C:\dani\teste.sas
> teste1.sas
> I want to do the list in my new table in SAS. Result:
>
> New Table
> _____________________________
> teste
> teste1
>
>
> Thanks
> Daniella Cruz
>
|