I wrote a quick macro to test submitting multiple remote sessions and I am getting some odd errors. It appears that the macro variable i isn't being passed through to the remote sessions and that the remote connection isn't being established before the client tries to communicate with it. Does anyone have any idea how to fix this? Here is the code I submitted: options autosignon sascmd='!sascmd -nosyntaxcheck'; %macro testrsubmit(x); %do i=1 %to &x; signon sess&i signonwait=no connectwait=no; %syslput i = &i /remote=sess&i; rsubmit sess&i wait=no sysrputsync=yes connectpersist=no; libname test "/example"; DATA test.Macros&i; set sashelp.vmacro; RUN; endrsubmit; signoff sess&i; %end; %mend; %testrsubmit(2); And here are the errors I recieve: Right away I get this: NOTE: Background signon to SESS1 in progress. ERROR: A link must be established by executing the SIGNON command before you can communicate with SESS1. WARNING: Implicit SIGNOFF previously scheduled. SIGNOFF will occur at completion of asynchronous remote processing. NOTE: Background signon to SESS2 in progress. ERROR: A link must be established by executing the SIGNON command before you can communicate with SESS2. and then these: WARNING: Apparent symbolic reference I not resolved. 2 DATA test.Macros&i; - 22 200 ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, (, /, ;, _DATA_, _LAST_, _NULL_. ERROR 200-322: The symbol is not recognized and will be ignored.
... View more