l***@gmail.com
2018-03-30 09:20:01 UTC
I have a macro variable
%macro snap(yyyymm);
data temp;
set temp;
mm=substr(&yyyymm,5,2);
yyyy=substr(&yyyymm,1,4);
run;
%mend;
The macro fails since there is no yyyymm column in temp.
How to correct the macro?
Thanks in advance.
%macro snap(yyyymm);
data temp;
set temp;
mm=substr(&yyyymm,5,2);
yyyy=substr(&yyyymm,1,4);
run;
%mend;
The macro fails since there is no yyyymm column in temp.
How to correct the macro?
Thanks in advance.