In ExcelXP I am trying to produce a single sheet per variable. I currently have the variable as a macro, but only get one tab as the last submitted macro variable. I have seen a few posts, but still cannot get a solution that works. below is the code if anyone has thought, please share.
%MACRO pool (p);
title;
ods listing close;
options missing=' ' center ;
ods tagsets.excelxp file="C:\Documents and Settings\name\Desktop\Append.xls"
style=xlrtf
options(sheet_interval='Proc' Sheet_Name="&p." center_horizontal='yes');
proc report data=stacked nowindows split='/'
style(summary)=Header;
where pool = "&p." and upb > 0;
column varf var1 total_upb upb six_plus f_upb c_upb ;
define varf / group ;
define var1 / 'Metric' group;
define total_upb / 'tot_upb' group;
define upb / '$ Balance' analysis sum style={tagattr='format:#,###'};
define six_plus / '$ Six' analysis sum;
define f_upb / 'F UPB' analysis sum;
define c_upb / 'C UPB' analysis sum;
rbreak after / summarize style={font_weight=bold background=lightgrey foreground=black};
compute before _page_ / style={font_weight=bold foreground=black font_size=6};
line "some title";
endcomp;
run;
ods tagsets.excelxp close;
ods listing;
%mend;
%pool(MLMI 2006-HE2);
%pool(MLMI 2006-HE4);