Date: Tue, 19 Jun 2007 13:27:32 -0700
Reply-To: tanwan <tanwanzang@YAHOO.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: tanwan <tanwanzang@YAHOO.COM>
Organization: http://groups.google.com
Subject: Re: getting the list of files in a directory
In-Reply-To: <200706191439.l5JAkkD9015677@malibu.cc.uga.edu>
Content-Type: text/plain; charset="us-ascii"
William,
you might want to see a SAS macro available at the SAS website as
http://support.sas.com/ctx/samples/index.jsp?sid=283&tab=details. It
uses "the pipe device type on a FILENAME statement" on WINDOWS.
I reckon you'll have to modify it to get what you want, but I see you
provide it with a directory and it returns a list of files and their
sub-directories. Or vice versa: a list of sub-directories and the
files they contain.
That and more. These are available in a SAS data set for further
processing.
Cheers!
|