ch17 - COBOL for the 21 st Century Nancy Stern Hofstra...

Info iconThis preview shows pages 1–14. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: COBOL for the 21 st Century Nancy Stern Hofstra University Robert A. Stern Nassau Community College James P. Ley University of Wisconsin-Stout (Emeritus) John Wiley & Sons, Inc . 11th edition CHAPTER 17 The Report Writer Module OBJECTIVES To familiarize you with: 1. The Report Writer Module. 2. The options available for printing reports. CONTENTS Introduction The Benefits of the Report Writer Module For Detail and Summary Printing For Control Break Processing For Printing Headings and Footings CONTENTS The REPORT SECTION in the DATA DIVISION The RD Entry within the REPORT SECTION Clauses Used at the Group Level within a Report Group Description Clauses Used at the Elementary Level within a Report Group Description CONTENTS PROCEDURE DIVISION Statements INITIATE Statement GENERATE Statement TERMINATE Statement INTRODUCTION COBOL has a Report Writer Module that greatly facilitates print operations. By including additional DATA DIVISION entries, the Report Writer Module automatically handles all: 1. Spacing of forms. 2. Skipping to a new page. 3. Testing for end of page. 4. Printing of headings at the top of a page and footings at the bottom of a page. INTRODUCTION 5. Accumulating of amount fields. 6. Testing for control breaks. 7. Detail and/or summary printing. 8. Printing of totals for control breaks. 9. Printing of a final total when there are no more input records. The Benefits of the Report Writer Module For Detail and Summary Printing You will recall that many reports in business require: 1. Detail printing- The printing of one or more lines for each input record. 2. 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 A report has both detail and summary printing. That is, when input records with the same department number are read, the records are printed and the total amount of sales for each salesperson is accumulated. For Control Break Processing When a change or break in the department number occurs, the accumulated total of all amounts of sales is printed as a control total line. We call department number a control field . Summary printing is performed as a result of the control break that occurs when there is a change in thee department number. For Printing Headings and Footings A Report Writer program can designate print lines of the following types: REPORT HEADING ( RH ) - Prints identifying information about the report only once, at the top of the first page of the report. PAGE HEADING ( PH ) - Prints identifying information at the top of each page....
View Full Document

Page1 / 67

ch17 - COBOL for the 21 st Century Nancy Stern Hofstra...

This preview shows document pages 1 - 14. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online