Chapter 17. The Report Writer Module
To familiarize you with
The Report Writer Module.
The options available for printing reports.
COBOL has a Report Writer Module that greatly facilitates print operations. By including additional
DATA DIVISION entries, the Report Writer Module will automatically handle all:
Spacing of forms.
Skipping to a new page.
Testing for end of page.
Printing of headings at the top of a page and footings at the bottom of a page.
Accumulating of amount fields.
Testing for control breaks.
Detail and/or summary printing.
Printing of totals for control breaks.
Printing of a final total when there are no more input records.
The Report Writer Module provides a facility for producing reports by focusing on the physical characteristics of the report rather than specifying the detailed procedures necessary to produce the report. Many new
DATA DIVISION entries are required when using this module but there are very few
PROCEDURE DIVISION entries.
THE BENEFITS OF THE REPORT WRITER MODULE
For Detail and Summary Printing
You will recall that many reports in businesses require:
Detail printing The printing of one or more lines for each input record.
Summary or group printing The printing of totals or other summary information for groups of records.
The Report Writer Module can be easily used for both detail and/or summary reports.
For Control Break Processing
One type of summary or group printing uses a control break procedure as discussed in Chapter 10. We review control ...