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 (November 2007, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments:   To: Ken Barz <Ken.Barz@cpcmed.org>
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 >


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