DATA Step, Macro, Functions and more

Remote sessions Parent and child relationship

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 13
Accepted Solution

Remote sessions Parent and child relationship

[ Edited ]

Hi all, I f

have a simple peace of code:

/*Grid Enabling section*/
%let rc=%sysfunc(grdsvc_enable(_all_,resource=SASAppCore));
%let rc=%sysfunc(grdsvc_nnodes(resource=SASAppCore));
%put Number of Grid Nodes=&rc;
options autosignon;
/*End of Enablement Signon*/

%put %sysfunc(pathname(work));

rsubmit task1 wait=no ;
%put %sysfunc(pathname(work));
OPTIONS FULLSTIMER SOURCE SOURCE2 MSGLEVEL=I MPRINT NOTES;
Data TEST2;
X=1;
Run;
endrsubmit;

Data TEST1;
x=10;
Run;

signoff task1;

We are running SAS Grid 9.4 on Linux.  

1. I need to share the two work sessions created, because I may have a dataset in one which I would like to merge with Test1.

2. I would like to have two sets of logs, parent and child (test1.log and test2.log)

3. If task 1 has an error, I would like the dataset Test1 not to execute 

 

please help. Thank you


Accepted Solutions
Solution
‎11-27-2017 03:03 AM
Super User
Posts: 5,881

Re: Remote sessions Parent and child relationship

Posted in reply to Deonjpret
1. Use a separate libref for data that should be shared. INHERITLIB= SIGNON option can make that easier. Or download the remote saswork data to the local session. Or use the pathname info to assign a new library from the local session to the remote saswork (hint: see %syslput and %sysrput).
2. See the LOG= option for the SIGNON statement.
3.Then why have wait=no?
Data never sleeps

View solution in original post


All Replies
Solution
‎11-27-2017 03:03 AM
Super User
Posts: 5,881

Re: Remote sessions Parent and child relationship

Posted in reply to Deonjpret
1. Use a separate libref for data that should be shared. INHERITLIB= SIGNON option can make that easier. Or download the remote saswork data to the local session. Or use the pathname info to assign a new library from the local session to the remote saswork (hint: see %syslput and %sysrput).
2. See the LOG= option for the SIGNON statement.
3.Then why have wait=no?
Data never sleeps
☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 113 views
  • 1 like
  • 2 in conversation