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
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
> I would like to be able to retrieve filename from directories including
> 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,
> 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
> 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 &;
> Richard Simhon
> Business Analyst
> Allianz Cornhill