| Date: | Thu, 29 Nov 2007 12:34:26 -0600 |
| Reply-To: | "data _null_," <datanull@GMAIL.COM> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | "data _null_," <datanull@GMAIL.COM> |
| Subject: | Re: External Files |
|
| In-Reply-To: | <92BD54B69F8AA446B8446927AAADE7B40169DE89@cpc-1.Colorado.local> |
| Content-Type: | text/plain; charset=ISO-8859-1 |
The PIPE access method is an easy to use method. In the example the
data returned by DIR is the input for the data step.
filename ft16f001 pipe 'dir /s /b"*.sas"';
data work.filePath;
infile ft16f001 truncover;
input filepath $256.;;
run;
proc print;
run;
On Nov 29, 2007 11:51 AM, Ken Barz <Ken.Barz@cpcmed.org> wrote:
> For a given directory in Windows, how might I go about creating a
> dataset with the name of each file in the directory of a given extension
> (.xml)?
>
> Thanks
>
|