请教一下各位大神,我创建了宏变量,但是却引用不了是怎么回事呢?
%macro count(where=,ord=);
proc sql noprint;
select count(distinct a) into : p3&ord. from test where &where. and c=1 ;
select count(distinct a) into : p4&ord. from test where &where. and c=2 ;
quit;
%mend;
%count(where=b=1,ord=m);
%put &p4m;
log 显示说:
%put &p4m;
WARNING: Apparent symbolic reference P4M not resolved.
我把macro中的noprint去掉,是会正常显示宏变量的值。但是我用 %put语句,log却显示 not resolved....
只能请教各位了。