| Date: | Tue, 20 Jul 1999 09:50:15 -0400 |
| Reply-To: | Tim Vorce <timv@TRILLIUMTEAM.COM> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | timv@TRILLIUMTEAM.COM |
| Subject: | Re: Can I read Create, Modify, Access dates under Windows NT |
|
| In-Reply-To: | <F5639E63DD99D211888F00C00D008A4C14283A@PRIMARY> |
| Content-Type: | text/plain; charset="iso-8859-1" |
IF, they are sas data sets, then proc sql can access that information.
There is a method in SAS to obtain this information for non-SAS files, but
as I recall, it depends on your operating system. Through proc sql, the
call is as follows:
proc sql;
select modate into :modate
from dictionary.tables
where libname='LIB' and memname='MEM';
quit;
the libname and memname must be in capital letters. There are other
attributes available. I know that create date is available. Don't trust
the nobs value.
Tim Vorce (248) 586-1999
tvorce@trilliumteam.com Trillium Teamologies
In the last resort, nothing is ridiculous except the fear of being so.
-Unknown
-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU]On Behalf Of
Hudson, Spencer
Sent: Monday, July 19, 1999 4:36 PM
To: SAS-L@LISTSERV.UGA.EDU
Subject: Can I read Create, Modify, Access dates under Windows NT
Running SAS 6.12 under MS Windows NT 4.0, can I read (into a SAS macro
symbol) the create, modify and access dates associated with external files?
I can issue a DOS 'dir' command and capture the resultant output, but this
is a mess. I tried FINFO, but can only get at filename, recfm, and lrecl,
but not the dates.
TIA,
Spencer
_________________________________________________
Spencer Hudson
ViroPharma Incorporated
405 Eagleview Boulevard
Exton, PA 19341
Telephone 610 458 7300 extension 154
FAX 610 458 7380
Electronic Mail shudson@viropharma.com <mailto:shudson@viropharma.com>
Web www.viropharma.com <http://www.viropharma.com>
Ticker VPHM (NASDAQ)
|