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>
Subject: Re: getting the list of files in a directory
Content-Type: text/plain; charset="us-ascii"
you might want to see a SAS macro available at the SAS website as
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