一般説明
The Procedure Division contains declarative procedures when the USE BEFORE REPORTING statement from the report writer module is present in a COBOL source program. Shown below is the general format of the Procedure Division when the USE BEFORE REPORTING statement is present.
CLOSE 文
The CLOSE statement terminates the processing of reel/units and files with optional rewind and/or lock or removal where applicable.
GENERATE 文
The GENERATE statement directs the RWCS to produce a report in accordance with the Report Description specified in the Report Section of the Data Division.
INITIATE 文
The INITIATE statement causes the RWCS to begin the processing of a report.
SUPPRESS 文
The SUPPRESS statement causes the RWCS to inhibit the presentation of a report group.
TERMINATE 文
The TERMINATE statement causes the RWCS to complete the processing of the specified reports.
USE BEFORE REPORTING 文
The USE BEFORE REPORTING statement specifies Procedure Division statements that are executed just before a report group named in the Report Section of the Data Division of this program, and optionally a contained program, is presented.