Hi:
I agree with all the previous comments. It would have been better for you to show output without all the colors that made the output hard to read. Also, while it looks like you're using SASHELP.CLASS, it's not clear what ordering you've done or want or whether you just used SASHELP.CLASS instead of your own data for the example.
This report approximates what your report looks like, the ordering is not entirely as you show. Also, the colors are not done. If you know how to do those colors in PROC REPORT, then I leave that piece to you. The key to making this work to have the subtotals you want is to make sure the column for the SEX variable is wide enough to fit the text for the subtotal label. to that end, I have made a temporary dataset called NEWCLASS with a length of 15 for the SEX variable, so the column can hold the labels at the break.
Hope this gets you started. For more help, please post your data and ALL your code.
Cynthia
... View more