option mprint mlogic symbolgen;
data test1;
length a1 $10 a2 8 a3 8 a4 8;
do i=1 to 30;
output;
end;
run;
%macro test(cond=);
proc sql;
create table test as
select i, count(*) as cnt
from test1
where &cond
;
quit;
%mend test;
%test(cond=a2 eq .);
%test(cond=%str(a2 eq . )); /*解释下错在哪?如何解决?*/
%test(cond=%quote(a2 eq .));