Skip to Main Content
PROGRAMMING IN COBOL/400: 2nd Edition
book

PROGRAMMING IN COBOL/400: 2nd Edition

by James Cooper, Nancy Stern, Robert A. Stern
January 2002
Intermediate to advanced content levelIntermediate to advanced
736 pages
18h 57m
English
Wiley
Content preview from PROGRAMMING IN COBOL/400: 2nd Edition

Chapter 4. PRINTING REPORTS

CHAPTER OBJECTIVES

Upon completion of this chapter, you should be able to

  • Distinguish between detail reports, exception reports, and summary reports.

  • Explain how a printer spacing chart is used to design a printed report.

  • Describe what should appear in report headings.

  • Explain the difference between report headings and column headings.

  • Demonstrate how record types for printer files are defined in the WORKING-STORAGE SECTION.

  • Explain the term "editing" and demonstrate how different editing features are used.

  • Explain how spacing is controlled when printing a report.

  • Explain page overflow and how it is used to print headings on a report.

TYPES OF REPORTS

Printed reports fall into three major categories:

  1. Detail reports.

  2. Exception reports.

  3. Summary or group reports.

DETAIL REPORTS

Detail reports are those reports that include one or more lines of output for each input record read. Thus, a detail report is produced when data from each input record are required. For example, printing employee checks from a master payroll file would be an example of a detail report. Another example of a detail report is a list of each employee and their hours worked, as shown in Figure 4.1.

Example of a detail report.

Figure 4.1. Example of a detail report.

EXCEPTION REPORTS

Sometimes users ask for detail reports when, in fact, other types of output would be more useful. For example suppose an insurance agent requests a listing ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Designing and Programming CICS Applications

Designing and Programming CICS Applications

John Horswill, Members of the CICS Development Team at IBM Hursley

Publisher Resources

ISBN: 9780471418467Purchase book