I was tasked to split existing reports (Report A --> REPORT A /REPORT B)
Reports are doing sums and counts, I need to split counts and sums as well.
NEWPAGE performed AT BREAK OF #OFFICE-FIELD (with AT TOP OF PAGE / WRITE TITLE header statements)
Was able to do split records , sums, and counts as required.
if all records go to REPORT B, counts and sums in REPORT A become 0 as expected. How can I avoid displaying the headers in REPORT A(as invoked by AT TOP OF PAGE/ WRITE TITLE) when sums/cnts are zero?
I saw that EJECT statement allows not printing the header statements for NEXT page. Is there a similar utility/statement I can use to not print header for CURRENT page? Or should I just recode and remove AT TOP oF PAGE/WRITE TITLE statements?