A belated response.
Macro loops are your best friend, especially when you want PROCs to do things out of the ordinary.
It is worth learning how to set up a macro loop....I use them all the time to generate hundreds of ExcelXP reports using PROC REPORT on different sort key values (e.g. department code). These end up being print-ready worksheets that have titles, frozen headers, Excel formatting, colours, page numbers (page X of Y), run date/time, etc., with all columns scaled to fit the page.
The same approach can be used on PROC TABULATE. Put the procedure inside a macro routine, then call the routine with parameters that are set in a macro loop. Then change the sheet name each to suit. You can just use the ODS ExcelXP option statement here.
Cheers
Bosch
... View more