@data_null__ wrote:
You need SYMGET(N).
27 data _null_;
28 call symputx('L12MODATE',intnx('month',today(),-12,'E'));
29 call symputx('L1MODATE',intnx('month',today(),-1,'E'));
30 call symputx('testADJL12M',put(symgetn('L12MODATE'),Monyy7.));
31 run;
32 %put &=L12modate &=testADJL12M;
L12MODATE=20788 TESTADJL12M=NOV2016
I'm sorry, all this symget or symgetn is completely unnecessary and overcomplicates things.
data _null_;
l12modate=intnx('month',today(),-12,'E');
call symputx('L12MODATE',l12modate);
call symputx('L1MODATE',intnx('month',today(),-1,'E'));
call symputx('testADJL12M',put(l12modate,Monyy7.));
run;
... View more