Linux- ( , ): https://unix.stackexchange.com/questions/91197/how-to-find-creation-date-of-file.
, FINFO(), FOPTNUM(), , . :
%macro GetAllAttributes(file);
%local rc fref fid i AttributeName AttributeValue;
%let rc=%sysfunc(filename(fref,&file));
%let fid=%sysfunc(fopen(&fref));
%do i=1 %to %sysfunc(foptnum(&fid));
%let AttributeName=%sysfunc(foptname(&fid,&i));
%let AttributeValue=%sysfunc(finfo(&fid,&AttributeName));
%put &AttributeName : &AttributeValue;
%end;
%let fid=%sysfunc(fclose(&fid));
%let rc=%sysfunc(filename(fref));
%mend GetAllAttributes;
Windows (SAS 9.3) :
78 %GetAllAttributes(d:\junk\somefile.txt)
Filename : d:\junk\somefile.txt
RECFM : V
LRECL : 256
File Size (bytes) : 1011
Last Modified : 06Dec2013:14:14:54
Create Time : 06Dec2013:14:14:52
Linux (SAS 9.3) :
41 %GetAllAttributes(~/somefile.txt)
Filename : /home/Quentin/somefile.txt
Owner Name : Quentin
Group Name : somegroup
Access Permission : rwx------
Last Modified : Fri Dec 6 14:14:54 2013
File Size (bytes) : 1011
, , SAS 9.3 Linux . , 9.4 SAS- , Windows. 9.3, : SAS Linux.