%let excelname=C:\Users....\xxx.xlsx;
PROC EXPORT DATA=_5_&num._result_&outcome OUTFILE= "&excelname"
DBMS=xlsx REPLACE;
sheet="&num.&outcome";
RUN;
%let excelname=C:\Users....\xxx.xlsx;
PROC EXPORT DATA=_5_&num._result_&outcome OUTFILE= "&excelname"
DBMS=xlsx REPLACE;
sheet="&num.&outcome";
RUN;