哪位高手帮我看看下面的code有什么问题呢,谢谢了
%macro adjust (n,m);data adjust1; set diab.adjust; if _n_=2 then effect='location'; else if _n_=4 then effect='gender'; else do; if _n_=&n then effect=income&m; output; end;run;%mend adjust;%adjust(6,1)%adjust(7,2)%adjust(8,3)我就是想吧obs=6,7,8的分别重命名为income1,income2,income3 if _n_=&n then effect="income&m"; 单引号对macro 不work
页:
[1]