Ending Report Writer Processing - Compaq COBOL AAQ2G1FTK User Manual

Compaq computer accessories user manual
Table of Contents

Advertisement

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 10–12 Subsequent GENERATE Statements
GENERATE
add all
NO
SUM operands

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.
10–40 Producing Printed Reports
add SUM
YES
sum−name(s) up
control
break?
to this control
level and save
NO
Reset
SUM
control break
level to minor
YES
DETAIL
DETAIL line
Report?
write CONTROL
FOOTINGS from
minor to this
control break level
write CH
set control
to new values
from this
Write
ZK−1553−GE

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COBOL AAQ2G1FTK and is the answer not in the manual?

Table of Contents