5.4
PROCEDURE
DIVISION
STATEMENTS
5.4.1
GENERATE
The GENERATE statement links the Procedure Division to the Report Writer
as described in the Report Section of the Data Division.
GENERATE identifier
Identifier represents a detail report group or an RD entry.
If
identifier is the name of a detail report group, the GENERATE statement
produces all the automatic operations within a Report Writer and produces
an output detail report group on the output device. This procedure is called
detail reporting.
If
identifier is the name of an RD entry, the GENERATE statement produces
all the automatic operations of the Report Writer and updates the footing re-
port groups within a particular report description without actually producing
a detail report group associated with the report. In this case, all summation
counters associated with the report description are algebraically incremented.
This procedure is called summary reporting.
If
more than one detail report
group is specified in a report defined by the RD entry, all summation counters
are algebraically incremented each time a GENERATE statement is executed.
A GENERATE statement, implicitly in both detail and summary reporting,
produces the following automatic operations:
•
Recognizes speCified control breaks to produce control footing and
control heading report groups
•
Accumulates into the summation counters all specified identifiers
•
Executes speCified routines defined by a USE statement before
generating associated report groups (See USE, section 5.4.4)
•
Steps and tests the line counter and page counter to produce page
footing and page heading report groups
•
Creates and prints the print line image
•
Resets the summation counters unless suppressed by the RESET
clause
60229400
Need help?
Do you have a question about the 3300 and is the answer not in the manual?