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 (June 2007, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: sas-l@uga.edu
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!


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