Are the files date-stamped in any way? If so something like this may help:
data _null_;
rc=filename('mydir','c:\mydir');
did=dopen('mydir');
numopts=doptnum(did);
memcount=dnum(did);
if (memcount gt 0) then
do i = 1 to memcount;
filename=dread(did,i);
fid = mopen(did, filename,'i',0,'d');
optname=foptname(fid,2);
recfm=finfo(fid,optname);
optname=foptname(fid,3);
lrecl=finfo(fid,optname);
rc=fclose(fid);
put filename = recfm= lrecl=;
end;
rc=dclose(did);
run;
Unfortunately you can't get the file dates this way, but you can get the names.
... View more