Generating A Report Writer Report; Automatic Operations Of The Generate Statement; First Generate Statement - Compaq COBOL AAQ2G1FTK User Manual

Compaq computer accessories user manual
Table of Contents

Advertisement

10.8.13.2 Generating a Report Writer Report

The GENERATE statement prints the report.
You can produce either detail or summary reports depending on the GENERATE
identifier. If you code the name of a DETAIL report group with GENERATE, you
create a detail report; if you code a report name with GENERATE, you create a
summary report.

10.8.13.3 Automatic Operations of the GENERATE Statement

When the first GENERATE statement is executed, the following report groups
are printed, if they are specified in the program:
REPORT HEADING report group
PAGE HEADING report group
CONTROL HEADING report groups
For detail reporting, the specified TYPE DETAIL report group
A USE BEFORE REPORTING declarative can also execute just before the
associated report group is produced, to produce a cover page for the report, for
example.
Figure 10–11 and Figure 10–12 illustrate the major flow of operations,
but do not cover all possible operations associated with a GENERATE
statement.
Figure 10–11 shows the sequence of operations for the first GENERATE
statement.
Figure 10–11 First GENERATE Statement
COBOL Program
.
.
.
Procedure Division
.
GENERATE
(next sequential
instruction)
For subsequent GENERATE statements in the program, the following operations
take place:
Any USE BEFORE REPORTING declaratives execute just before the
associated report group is produced.
Any specified control breaks occur.
10.8 Programming a Report Writer Report
write
write
RH, PH,
CH major
CH FINAL
CH minor
Producing Printed Reports
Note
YES
DETAIL
DETAIL
reporting
NO
ZK−1552−GE
Producing Printed Reports 10–39
write
line

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