Section
Subsections
Page
25
40
I
70
01
Example 7: 941 Report
This program will process multiple files to produce
the 941 report. One report is produced for each
plant.
Note that a count of the lines printed on each page
is kept (see statements 195
+
5 and 150).
In
this
way, headings can be and are printed at the top of
each page in the report.
Also, notice that the plant totals are reset only
when a new plant is to be processed (see statements
2
+
1 thru 3 - 2), while page totals are reset when
a new page is to be printed (see statements 4
+
4,
4 + 5).