BookmarkSubscribeRSS Feed
woo
Barite | Level 11 woo
Barite | Level 11

Hello friends,

i am using Linux redhat with SAS 9.4 + SAS EG with multiple nodes in grid environment,

 

we have temporary work area on each node we called "/workarea1" (exist on all nodes - not shared) my goal is getting list of all work directories (sas_work.... or sas_util...) at specific time from all sas node at once.

 

when i use below code, it only generating files from one specific node only (where it is being executing) - in EG is there any way to get all temporary work directories from all nodes?

 

filename ind pipe "dir /workarea1";

data file_list;

length fname $200;

infile ind truncover;

input fname $200.;

run;

 

appreciate your comment,

 

2 REPLIES 2
boemskats
Lapis Lazuli | Level 10

Woo,

 

If you have terminal access to your GRID, you could configure passwordless ssh for your user between each of your nodes. You'll then get the collective output via something like this:

 

filename ind pipe "for tgt in gridnode1 gridnode2 gridnode3; do ssh $tgt 'dir /workarea1'; done";
data file_list;
  length fname $200;
  infile ind truncover;
  input fname $200.;
run;
woo
Barite | Level 11 woo
Barite | Level 11
Thanks boemskats for your comment, I never configured "passwordless ssh" before but if this is something affecting any existing security - I wouldn't do it...just staying in compliance 🙂 - I that case then running job on individual node would make sense...

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
  • 704 views
  • 0 likes
  • 2 in conversation