Here are some tips for How to share your SAS knowledge with your professional network.
Help needed: How do I get the modification date for raw data set on mainframe?
I try to make a scheduled process running every night. If raw data, located on mainframe, have changed, that means an existing raw data file has been replaced, I've to run several jobs. I tried to get the modification data with following statements, but unfortunately it gives me lot of infos back and not the one I need.
data _null_; dsname="TRANSFER.RMTST.SD057.ZD"; if FILEEXIST(dsname) then do; put dsname 'gibt es' ; rc=FILENAME('myfile',dsname); fid=FOPEN('myfile'); infocnt=FOPTNUM(fid); put infocnt=; put 'Information for a Sequential File:'; do j=1 to infocnt; opt=FOPTNAME(fid,j); optval=FINFO(fid,upcase(opt)); put opt= optval=; end; rc=FCLOSE(fid); rc=FILENAME('myfile'); end; else put dsname 'does not exist.'; run;
Thank's in advance, Christine