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 10–11 First GENERATE Statement
ZK−1552−GE
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 10–39
Содержание COBOL AAQ2G1FTK
Страница 22: ......
Страница 30: ......
Страница 94: ......
Страница 110: ......
Страница 146: ......
Страница 180: ......
Страница 194: ...Processing Files and Records 6 1 Defi...
Страница 300: ......
Страница 490: ......
Страница 516: ......
Страница 517: ......
Страница 530: ......
Страница 534: ......
Страница 590: ......
Страница 620: ......