Murach's Mainframe COBOL

Chapter 3 How to write a program that prepares a report
A simple report-preparation program 70
The file specifications 70
The report specifications 72
The COBOL code 74
How to code Select statements and FD statements 82
How to code Select statements on a mainframe 82
How to code FD statements and record descriptions for disk files 84
How to code FD statements and record descriptions for print files 84
How to code the Procedure Division 86
How to code Open and Close statements 86
How to code Read statements for sequential disk files 88
How to code Write statements for print files 88
How to use the Current-Date function to get the current date and time 90
How to use Accept statements to get the current date and time 92
An enhanced version of the report-preparation program 94
The enhanced report specifications 94
The changes to the Data Division code 96
The changes to the Procedure Division code 98
How to test a report-preparation program 100
How to prepare a test plan and test data 100
Common run-time errors 102
Perspective 104
t




Murach's Mainframe COBOL

Learn more about this book

View the table of contents

Add this book to your cart