|
|
楼主

楼主 |
发表于 2004-12-3 16:03:06
|
只看该作者
宏里面的问题
在宏里面的if then语句前也加上%,我不是很明白这种意思,例如:
%macro create;
data temp;
set impish.employee;
if id>=350;
run;
%mend create;
%macro plot;
proc plot;
plot &x*&y;
run;
%mend plot;
%macro analyze(getdata,x,y);
%if &getdata=yes
%then %create;
%plot;
%mend analyze;
%analyze(yes,educ,salary);
我试了一下去掉if then 前面的%,画出来的图跟去掉前的一样,请教一下,加%的意义何在? |
|