SUPPORT / SAMPLES & SAS NOTES
 

Support

Usage Note 40934: Retrieve file size, create time, and last modified date of an external file

DetailsCodeOutputAboutRate It

Starting in SAS® 9.2, there are three additional attributes for the FINFO function. They are:

File Size(bytes)
Create Time
Last Modified

The sample code on the Full Code tab illustrates how to use the FINFO function within a macro to retrieve the values of these new attributes.

A non-macro technique is illustrated on the Full Code tab as well.

The create date is not stored with a file on UNIX. Therefore, the CRDATE variable that is within the code on the Full Code tab is missing on UNIX.



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SAS64-bit Enabled AIX9.2 TS1M0
Windows Vista for x649.2 TS1M0
Windows Vista9.2 TS1M0
Microsoft Windows XP Professional9.2 TS1M0
Microsoft Windows Server 2003 Standard Edition9.2 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9.2 TS1M0
Microsoft Windows Server 2003 Datacenter Edition9.2 TS1M0
Microsoft® Windows® for x649.2 TS1M0
Microsoft Windows XP 64-bit Edition9.2 TS1M0
Microsoft Windows Server 2003 Enterprise 64-bit Edition9.2 TS1M0
Microsoft Windows Server 2003 Datacenter 64-bit Edition9.2 TS1M0
Microsoft® Windows® for 64-Bit Itanium-based Systems9.2 TS1M0
z/OS 64-bit9.2 TS1M0
z/OS9.2 TS1M0
64-bit Enabled HP-UX9.2 TS1M0
64-bit Enabled Solaris9.2 TS1M0
HP-UX IPF9.2 TS1M0
Linux9.2 TS1M0
Linux for x649.2 TS1M0
OpenVMS on HP Integrity9.2 TS1M0
Solaris for x649.2 TS1M0
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.