%macro exportToExcel(tname);
filename _temp_ "C:\Documents and Settings\Administrator\바탕 화면\Chart 문서정리\samples\&tname..xls";
ods noresults;
ods listing close;
ods html file=_temp_ rs=none style=minimal;
proc print data=&tname noobs;
run;
ods html close;
ods results;
ods listing;
filename _temp_;
dm "winexecfile ""C:\Documents and Settings\Administrator\바탕 화면\Chart 문서정리\samples\&tname..xls"" ";
%mend;
%exportToExcel(REPORT.Flex2_xxx);
filename _temp_ "C:\Documents and Settings\Administrator\바탕 화면\Chart 문서정리\samples\&tname..xls";
ods noresults;
ods listing close;
ods html file=_temp_ rs=none style=minimal;
proc print data=&tname noobs;
run;
ods html close;
ods results;
ods listing;
filename _temp_;
dm "winexecfile ""C:\Documents and Settings\Administrator\바탕 화면\Chart 문서정리\samples\&tname..xls"" ";
%mend;
%exportToExcel(REPORT.Flex2_xxx);