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 (February 2003, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
mathematical statistician
Date:         Fri, 21 Feb 2003 13:38:41 -0500
Reply-To:     "Fehd, Ronald J. (PHPPO)" <rjf2@CDC.GOV>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Fehd, Ronald J. (PHPPO)" <rjf2@CDC.GOV>
Subject:      Re: Make directory listing available as a macro variable
Comments: cc: rpresley <rpresley@GMCF.ORG>
Content-Type: text/plain

> From: rpresley [mailto:rpresley@GMCF.ORG] > SAS 8.2, Windows. > > We have directories such as c:\excel . > > I want to be able to include the names of the files in this > directory into a SAS macro variable so I can then use that > macro variable in a program that imports all of the excel > files in a directory. It looks like I might be able to use a > pipe command to get the dir listing into a flat file but I > have not figured this out yet.

Jay Stevens provided code which I rewrote in my inimitable Writing for Reading & ReUse Style Sheet

Date: Wed, 9 Oct 2002 09:10:46 -0400 From: "Fehd, Ronald J. (PHPPO)" <rjf2@CDC.GOV> Subject: tip read_dir

> From: Jay Stevens [mailto:user@EXAMPLE.NET] > Sent: Tuesday, September 17, 2002 12:47 PM > Subject: Platform independent Macro for Listing files in a directory

Ron Fehd the macro maven CDC Atlanta GA USA

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