Does anyone know of any SAS functions / techniques for obtaining the SIZE of files / datasets in UNIX directories? (eg in MB or GB).
Remember to vote up questions/answers you find interesting or helpful (requires 15 reputation points)
|
2
|
|
|
|
|
1
|
Hello, You can use this code coming from sashelp documentation to receive in a table the size of files in blocks (=byte), divide it by 10*6 to get the size in megabytes. Kind regards, RSUBMIT; data dirlist; |
||
|
|
|
0
|
You can use the FINFO function to extract information about individual files:
After running this piece of SAS code, the data set "info" contains records about various file informations for /tmp/mydata.sas7bdat. This could be any type of file though. One information item is file size in bytes. |
||
|
|
|
0
|
You can use the CONTENTS procedure mixed with the ODS system:
After running this piece of SAS code, the data set "eng" contains information item records about the data set "a". This works for SAS member files (SAS data sets etc.), and gives various engine information about the selected member. One of the information items is file size in bytes. |
||
|
|
|
0
|
You can use the DATASETS procedure together with the ODS system:
The "FileSize" column in the output data set "mmbrs" holds the file size of the SAS members. |
||
|
|