Hi, I am trying to apply the DeclareMacros option of SAS Submit. It is supposed to allow transfer of variable values to macros in SAS job. I made this tiny snip (it will run though, but failing):
a = "test1";
b = "test2";
Meta Connect( "sas.radiometer.dk", 8561, "", ProfileLookup );
_importsasconn = SAS Connect( "SASApp" );
SAS Submit("
data test;
x = &a;
y = &b;
run;
",
declaremacros(a,b),GetSASLog(true));
SAS log says:
768 %let a=%NRBQUOTE(test1);
769 %let b=%NRBQUOTE(test2);
770
771 data test;
772 x = &a;
773 y = &b;
774 run;
NOTE: Variable test1 is uninitialized.
NOTE: Variable test2 is uninitialized.
NOTE: The data set WORK.TEST has 1 observations and 4 variables.
and the data set test contains:

I fail to see, what I am doing wrong.
Best regards
Poul Ravn Sørensen