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

Trying to run two programs simultaneously, both of which by themselves may near the limit of what WORK allows. If I run them simultaneously in two different SAS windows (I just open SAS twice...), wondering if they'll be using the same work space? 

 

Thanks! 

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

If you've opened it twice, then no.

 

You can check it out though. This will show you the actual path to your work folder and you can check that they are not the same. 

 

%put %sysfunc(pathname(work));

View solution in original post

2 REPLIES 2
Reeza
Super User

If you've opened it twice, then no.

 

You can check it out though. This will show you the actual path to your work folder and you can check that they are not the same. 

 

%put %sysfunc(pathname(work));
AngusLooney
SAS Employee

So, DI Studio absolutely opens multiple SAS instances on the server(s) it's running on, and no just for each job window. Additional ones get spawned for things like view tables directly from the folders etc.

 

Enterprise Guide uses just one, with a single work library (and physical directory).

 

The being able to determine the physical directory via %sysfunc(pathname(work)) can be very useful, but watch out if you're on a grid, as you could end up on multiple different servers.

 

There are a range of macro variables, and sysfunc calls you can utilise to find out the server you're on, the PID of the SAS process you're using etc, which open up a realm of possibilities, depending on your environment.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 2 replies
  • 936 views
  • 4 likes
  • 3 in conversation