请问下面关于宏的应用的代码哪里错了?为什么会提示错误呢…想了很久没明白TT……求大神指教…谢谢!
data temp;
input x $;
datalines;
羽绒
线衣
毛衣
;
run;
proc sql noprint;select count(distinct x) into :n from temp;
select distinct x into :type1-:type%left(&n) from temp ;
quit;
proc sql;
select x from temp
where x=&type1;
quit;