Compaq AAQ2G1FTK Marine Radio User Manual


 
Producing Printed Reports
10.8 Programming a Report Writer Report
CONTROL FOOTING and CONTROL HEADING report groups print after
the specified control breaks occur.
In a detail report, the TYPE DETAIL report groups print.
SUM operands are incremented.
Sum counters are reset as specified.
Figure 10–12 shows the sequence of operations for all GENERATE statements
except the first. See Figure 10–11 for a comparison with the sequence of
operations for the first GENERATE statement.
Figure 1012 Subsequent GENERATE Statements
GENERATE
YES
NO
NO YES
add SUM
sumname(s) up
to this control
level and save
write CONTROL
FOOTINGS from
minor to this
control break level
control
break?
set control
to new values
write CH
from this
control break
level to minor
DETAIL
Report?
Write
DETAIL line
add all
SUM operands
Reset
SUM
ZK1553GE
10.8.13.4 Ending Report Writer Processing
The TERMINATE statement completes the processing of a report.
Like INITIATE, the TERMINATE statement report name is specified in the RD
entry in the Report Section and in the REPORT clause of the FD entry for the file
to which the report is written.
When the TERMINATE statement is executed, breaks occur for all control fields,
and all control footings are written; any page footings and report footings are also
written.
PROCEDURE DIVISION.
.
.
.
300-END-OF-FILE.
TERMINATE MASTER-LIST.
CLOSE CUSTOMER-FILE, PRINTER-FILE.
STOP RUN.
1040 Producing Printed Reports