General Description 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.
The CLOSE Statement The CLOSE statement terminates the processing of reel/units and files with optional rewind and/or lock or removal where applicable.
The GENERATE Statement 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.
The TERMINATE Statement The TERMINATE statement causes the RWCS to complete the processing of the specified reports.
The USE BEFORE REPORTING Statement 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.