Compaq AAQ2G1FTK Marine Radio User Manual


 
Producing Printed Reports
10.8 Programming a Report Writer Report
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.
Note
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 1011 First GENERATE Statement
ZK1552GE
COBOL Program
.
.
.
Procedure Division
.
GENERATE
(next sequential
instruction)
write
RH, PH,
CH FINAL
write
CH major
CH minor
DETAIL
reporting
YES
write
DETAIL
line
NO
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.
Producing Printed Reports 1039