BookmarkSubscribeRSS Feed
deleted_user
Not applicable
options sascmd='D:\Program Files\SAS\SAS 9.1\sas.exe -nosyntaxcheck' autosignon=yes ;
%MACRO ABC();
signon first1;
%syslput rex_path=D:\BI ETL\Automation_Testing\Reg_ETL_Jobs;
%syslput rjname=BLCMExtInitCustomer;
rsubmit first1 sysrputsync=yes notify=no wait=no ;
LIBNAME AmdExStg "D:\ARVIND\AUTOMATE_TESTING\EXTRACTS";
%let trans_rc=;
%let job_rc=;
%include "&REX_PATH\&RJNAME..sas"; endrsubmit;
WAITFOR first1;
signoff first1;
%put &trans_rc;
%put &job_rc;
%MEND ABC();
%abc();

when BLCMExtInitCustomer.sas is run then it update value of trans_rc and job_rc macro variable.
but
%put &trans_rc;
%put &job_rc; are not printing updated value;

by default on my sas application server NODMR is in effect.
1 REPLY 1
LinusH
Tourmaline | Level 20
Those macro variables are created and set in the remote session.
Use %SYSRPUT to assign them in the client ("master") session.

/Linus
Data never sleeps

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 960 views
  • 0 likes
  • 2 in conversation