I am having trouble calling a macro inside a SAS/CONNECT subsession with input parameters that are macro variables. I have %included the macro inside the subsession and confirm that it is being found when called. The issue comes with my use of macro variables inside the macro call (the &FILEIN and &FILEOUT parameters). I have created these inside the subsession and used put statements to confirm that they are resolving exactly as they should be. However, in the %winratio macro, I get an error that "Apparent symbolic reference to FILEIN not resolved" and the macro attempts to locate the dataset work.FILEIN. Is there a way to get this to work or am I going to have to hard code my macro calls? %macro doover (REMRUN=,tm= ) ;
%syslput _all_ / remote=task&REMRUN;
/* Initialize child session */
rsubmit task&REMRUN wait=no inheritlib = (work=share);
options symbolgen mprint mlogic;
%include "/home/programs/macros/winratio.sas" ;
%local T;
%do T = %scan(&tm,1) %to %scan(&tm,-1) ;
%put ERROR: &T;
%let FILEIN = derived.adttwinratio_tm&T.;
%let FILEOUT = share.unstratified&T.;
%put &FILEIN;
%winratio( idsn=&FILEIN , byvar=timen , tgrp=&RX1 , odsn = &FILEOUT ) ;
%end ;
/* End child session */
endrsubmit;
%mend doover;
... View more