BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi, I am a new user and need your help.

On my computer there is only EG 2.05, no Base SAS. As an EG client, I store my files in remote server in a folder under 'libraries'. I can see only file names when I click "server list", but no file size and date information.

Today I have to clean up the space, and wonder how I can know file sizes on the remote server, like we see local files in Windows?

Thanks!
2 REPLIES 2
deleted_user
Not applicable
My sympathies on your still on EG 2.05.

two ways come to mind
1) with a login to the remote box ...
2) write a SAS program using a code task

The SAS program will have to use dopen, dclose, and the other "d" (directory) functions to retrieve the information you want.

This will require a lot of reading of the SAS documentation, which is available through the SAS website.

http://support.sas.com/documentation/
prholland
Fluorite | Level 6
I'm assuming your remote server is UNIX and you're allowed to run system commands, like X or %SYSEXEC, on it. If this is true, then the code below will list all of your SAS data sets in SASUSER with their filesizes (in blocks, 1 block = 512 bytes) in the SAS Log:

DATA _NULL_;
LENGTH path $200;
path = PATHNAME('SASUSER');
CALL SYSTEM('ls -l ' !! path !! ' > ~/sasuser.txt');
RUN;

DATA _NULL_;
INFILE '~/sasuser.txt';
INPUT;
PUT _INFILE_;
RUN;


..............Phil

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1047 views
  • 0 likes
  • 2 in conversation