以下是我编写的一个test程序,目的是把SAS结果导入到excel,但是不知道何处出现问题,调用宏的时候文件a中没有显示
需要的结果,请高手赐教,谢谢了!
data a;
input x y;
cards;
1 52
2 54
;
run;
data b;
input x y;
cards;
2 51
3 32
;
run;
%macro wo(t);
filename try dde "excel|c:\[&t..xls]sheet1!r1c1:r10c2" notab;
data _null_;
set &t;
file try;
t='09'x;
if _n_=1 then
do;
put 'x' t 'y';
put x t y;
end;
put x t y;
%mend;
%wo(a);
%wo(b);