I am trying to output the compare result to excel or pdf for all the output from the library. here is what I wrote
%DO I = 1 %TO &coun;
%LET DT = %SCAN (&DS_LIST., &I., ~);
ods excel file="D:\test.xlsx";
PROC COMPARE BASE = BASE.&DT. COMPARE = COMPARE.&DT. OUTNOEQUAL OUTBASE
OUTCOMP OUT = COMPAREOUT;
RUN
;
ods excel close;
however it gives me only the last dataset output.. what is wrong here?