The proc report code below does what I want except when there are too many lines for an entire set with the same value of month_of to fit on one page. If month_of takes more than one page the detail of a run_date sub group prints on one page and the summary prints on the next. I have not had a case where detail is split between pages but I don't know if that is blind luck or an artifact of how proc report works. Is there some way to force the detail and summary values for a value of run_date to be on the same page?
I'm confused. You show a BY statement for the variable MONTH_OF, but then you have REPORT_MONTH in the COLUMN statement with no usage or DEFINE statement. Are MONTH_OF and REPORT_MONTH the same variable???