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,
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;
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.
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.