BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Jade_SAS
Pyrite | Level 9

Hi All,

 

    I have several questions about the space of work directory at SAS server:

    1) how can I know the size of space in the work directory? Any SAS statements for this purpose?

    2) How the space in the work directory is distributed between users at SAS server?

    3)I f I know the size of the SAS table, how can I guess the work space that needed to process that SAS table?

   

Thank you!

 

Jade

1 ACCEPTED SOLUTION

Accepted Solutions
Kurt_Bremser
Super User

Unless a dataset is compressed, you'll need three times the size of your largest dataset as a rule of thumb (in a sort, original file/utility file/target file).

SAS will take all space it gets, there is no built-in limit. That is why I use quotas on the WORK, so one careless user can't wreck all the other's day.

I do have a script in my web servers cgi-bin that runs a df -k and creates web output from that. Very simple method to monitor disk usage.

View solution in original post

4 REPLIES 4
Kurt_Bremser
Super User

Unless a dataset is compressed, you'll need three times the size of your largest dataset as a rule of thumb (in a sort, original file/utility file/target file).

SAS will take all space it gets, there is no built-in limit. That is why I use quotas on the WORK, so one careless user can't wreck all the other's day.

I do have a script in my web servers cgi-bin that runs a df -k and creates web output from that. Very simple method to monitor disk usage.

Jade_SAS
Pyrite | Level 9

Thank you, KurtBremser!

If we have 3T work space on the SAS server, and we have 200 users. And if only one user is running SAS job, the avaliable work space to that user should around 3T. Am I right?

 

Thanks,

Jade

TomKari
Onyx | Level 15

One small additional note. It is possible for SAS sessions to fail, in which case the WORK datasets aren't cleaned up. SAS has tools to clean up these "orphan" files, and you can also watch for them using the type of monitoring software that @Kurt_Bremser mentions.

 

Tom

Kurt_Bremser
Super User

@Jade_SAS wrote:

Thank you, KurtBremser!

If we have 3T work space on the SAS server, and we have 200 users. And if only one user is running SAS job, the avaliable work space to that user should around 3T. Am I right?

 

Thanks,

Jade


Yes. SAS itself sets no limits for individual users. But be aware that there may be limits set by the operating system. On AIX (as an example), every new user is created with a so-called "soft" limit of 1 GB per file.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

How to connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 1361 views
  • 1 like
  • 3 in conversation