I'm running a code similare to the following one and the data step is not working and I can't seem to understand why
%macro macro_1(variable);
rsubmit;
data want_&variable. (keep = a b c);
set have;
run;
endrsubmit;
%mend macro_1;
%macro testing;
%do i=1 %to 3;
%macro_1(&i.); /* My loop here*/
%end;
%mend testing;
%testing;
Here's the error I keep on getting :
Syntax error, expecting one of the following: a name, a quoted string, (, /, ;, DATA, LAST, NULL.
I have tried using the double ampersand or using more periods at the end, unsuccessfully however
Much thanks for any help !
rsubmitand it worked just fine.