Thanks for your reply, SAS is using windows server 2008, I have noticed another thread had a similar issue with the finfo function: https://communities.sas.com/thread/38083 I don't know how to get it to extract it in the format I need, so I had to use this conversion to give me the format I need: format LastModified datetime20.; fid=fopen('fileref'); /*fid is the file-id*/ Mod_Date=finfo(fid,'Last Modified'); LastModified=INPUT((TRIM(SCAN(Mod_Date ,1," ") || SUBSTRN(SCAN(Mod_Date ,2," "),1,3) || SCAN(Mod_Date ,3," ")) || ":" || SCAN(Mod_Date ,4," ")),datetime20.);
... View more