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

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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