Very new to sas, need to perform export procedure for many datasets called data1, data2, data3 ... data10. Is there a way to operationalize this? I've tried the following without success
LIBNAME input '/home/.../input';
LIBNAME output '/home/.../output';
%macro anynumber(number);
proc export data=input.data&number file="/home/.../output/data&number..dta" dbms=dta replace;
run;
%mend;
do i = 1 to 10;
%anynumber(i)
end;
run;
question from:https://stackoverflow.com/questions/65852014/running-sas-program-for-multiple-parameters-in-loop