Hi Guys,
I'm trying to creating the monthly table
something like work. test_052019
used code
data test_&mnth&yr;
set test_Add;
run;
But getting below error
22
__
200
ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, (, /, ;, _DATA_, _LAST_, _NULL_.
ERROR 200-322: The symbol is not recognized and will be ignored.
Used below code for macro
Month is $2
Proc sql noprint ;
select distinct Month into : Month
from Input;
quit;
%let mnth = %qtrim(&Month);
%put &mnth
Year is numeric
Proc sql noprint ;
select distinct Year into : Year
from Input;
quit;
%let yr = %qtrim(&Year);
%put &yr ;
Any help, please