Hi everyone, I am trying to run a macro with two variables Test1 and Test2. %macro TestMacro (Test1=,Test2=,Num=);
DATA WORK.TestDt&Num;
Mean=MEAN(&Test1,&Test2);
RUN;
%mend TestMacro;
%TestMacro (Test1=19,Test2=20,Num=1);
%TestMacro (Test1=16,Test2=19.8,Num=2);
%TestMacro (Test1=18.9,Test2=17.6,Num=3); It works fine when I only run it once. However, the macro stops after the first run, even though there are two left that I included at the same time. I don't know if that is what is supposed to happen, or if I haven't figured out how to run multiple macros at the same time yet. Clarification would be great! Thanks y'all
... View more