SAS SESSIONS and WORK Library

Reply
Super Contributor
Posts: 371

SAS SESSIONS and WORK Library

Please, How does sas create a work library for one session ?

If many sas sessions can set to one work library ,  we could have  a problems? what is it ?

Thank you

Super User
Posts: 10,018

Re: SAS SESSIONS and WORK Library

Every new SAS session will create an unique fold for WORK library . Therefore there would not be a problem for many sas session .

Use the following code to check where is your WORK library.

%let path=%sysfunc(pathname(WORK));

%put &path ;

Trusted Advisor
Posts: 3,211

Re: SAS SESSIONS and WORK Library

The SASWork is just meant  for temporary data and it is physical unique for each sas session and user.
The OS is generating a unique ProcessID for each session that one can be found (obfuscated) as is date/time within the physical naming.
With Windows (Sas base) it is set the the users %tmp% personal setting normally located on a local disk. 

On Unix there should be as file system being opened for all users read/write/execute (and sticky-bit !! on the directory mounted to that)

It is very well possible to see a saswork directory being creating in a saswork directory. As parallel code submission is possible with Eguide 5.1 multiple sessions are started for that not sharing the saswork.

---->-- ja karman --<-----
Ask a Question
Discussion stats
  • 2 replies
  • 189 views
  • 6 likes
  • 3 in conversation