不是高手,但是感觉问题可能出现在这里,我没见过这么用%let的,也不知道能不能这么用。
我不懂plot,瞎猜修改了一下,你看看是不是你想要的结果吧。
%let exa=score;
%let xvar=math;
%let yvar=phys;
%macro plot;
proc plot;
plot &xvar*&yvar;
run;
%mend plot;
data score;
input math phys@@;
cards;
91 81
98 65
70 92
;
run;
data temp;
set &exa;
run;
%plot