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 (December 2002, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 2 Dec 2002 12:22:06 GMT
Reply-To:     "Richard A. DeVenezia" <radevenz@IX.NETCOM.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Richard A. DeVenezia" <radevenz@IX.NETCOM.COM>
Organization: EarthLink Inc. -- http://www.EarthLink.net
Subject:      Re: Read directory path and filenames (including date last
              modified)
Content-Type: text/plain;

Richard:

You can get that info using a macro of mine. http://www.devenezia.com/downloads/sas/macros/#FindFiles - Get file information from Windows

-- Richard A. DeVenezia

"Richard Simhon" <Richard.Simhon@CORNHILL.CO.UK> wrote in message news:2710430F08DAD211A3F70008C71EEE69089E9775@s-cho-exch0001.int... > All > > I would like to be able to retrieve filename from directories including the > date when they were last modified. I have found this piece of code, > searching through the Listserv site. So far I can get the directories, the > names and subdirectories using the letters ad/b/s respectively. > > Does anyone know what letter(s) I need to use to get the filename with its > extension and the date it was last modified. > > Thanks very much. > > I am on Windows NT using SASv8.2 > > %let dir2use=g:\richard; > filename dirlist pipe "dir &dir2use./ad/b/s"; > data dirstuff; > length dirname $70; > infile dirlist truncover; > input dirname &; > run; > > Richard Simhon > Business Analyst > Allianz Cornhill snip


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