Desktop productivity for business analysts and programmers

How to see remote server file size on EG client

Reply
N/A
Posts: 0

How to see remote server file size on EG client

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!
N/A
Posts: 0

Re: How to see remote server file size on EG client

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/
Frequent Contributor
Posts: 81

Re: How to see remote server file size on EG client

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
Ask a Question
Discussion stats
  • 2 replies
  • 111 views
  • 0 likes
  • 2 in conversation