I tried to use macro in data step to exclude rows that does not match the conditions, but it won't work. here is my code
%macro bbb(a);
data grade&a.;
set grade&a.;
if ID='schoolgrade&g.score1' then output;
run;
%mend;
%match(4)
so, i cannot use macro in the if statement? what else can i do? Thanks!