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.

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!

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
  • 855 views
  • 4 likes
  • 3 in conversation