Murach's Structured COBOL
Chapter 3 How to write a program that prepares a report
A simple report-preparation 90
The file specifications 90
The report specifications 92
The COBOL code 94
How to code Select statements and FD statements 102
How to code Select statements for Personal COBOL 102
How to code Select statements on a mainframe 104
How to code FD statements and record descriptions for disk files 106
How to code FD statements and record descriptions for print files 106
How to code the Procedure Division 108
How to code open and close statements 108
How to code Read statements for sequential disk files 110
How to code Write statements for print files 110
How to use the Current-Date function to get the current date and time 112
How to use Accept statements to get the current date and time 114
An enhanced version to the report-preparation program 116
The enhanced report specifications 116
The changes to the Data Division code 118
The changes to the Procedure Division code 120
How to test a report-preparation program 122
How to prepare a test plan and test data 122
How to review input files and print files when using Personal COBOL 124
Common run-time errors 126
Perspective 128
t
[Prev]
[Next]
[Book summary]