如下,想把macro a里的statement1、statement2设置成宏参数,每次替换不同的语句,下面的写法跑不出来,应该怎么写呢?
%macro a(statement1,statement2);
data b;
set a;
&statement1.;
&statement2.;
else type="other";
run;
%mend;
%macro where;
where name ='abc';
%mend;
%macro if;
if days>360 then type="long";
%mend;
%a(%where,%if);