General Description (Report Writer) 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 (Report Writer) The CLOSE statement terminates the processing of reel/units and files with optional rewind and/or lock or removal where applicable.
The GENERATE Statement (Report Writer) 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 USE BEFORE REPORTING Statement (Report Writer) 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.