我现在在学习base sas中的宏功能,发现其中的一段程序有点问题,希望能够得到解答,谢谢。
P.S:顺便希望能够推荐一些关于sas宏功能的书。
这段程序在sas8.2上运行
option symbolgen;
option mprint;
data new;
input age income;
cards;
10 0
11 100
12 200
13 150
15 288
14 148
18 658
19 894
15 525
;
run;
%macro create;
data new1;
set work.new;
if age<=16;
run;
%mend create;
%macro plot(yvar,xvar);
proc plot data=work.new;
plot &yvar*&xvar;
run;
%mend plot;
%macro analyze(yvar,xvar);
%put do you want to execute the data step?;
%input getdata;
%if %upcase(&getdata)=YES %then %create;
%plot(&yvar,&xvar)
%mend analyze;
%analyze(income,age)