%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....
只能请教各位了。



雷达卡


京公网安备 11010802022788号







