%macro t1(n1,n2,data);
data database;
do r=1 to &n1;
do c=1 to &n2;
input w @@;
output;
end;
end;
cards;
&data
;
run;
proc freq data=database;
weight w;
tables r*c/chisq nopercent nocol norow;
run;
%mend;
%t1(2,3,149172 139775 135702 150463 141796 137808);
提示终止:
ERROR: 宏 T1 生成了 DATA 步的 CARDS(数据行),可能导致不正确的结果。DATA 步和宏将停止执行。
ERROR: 宏 T1 将终止执行。
问题出在哪里呢?