Murach's Structured COBOL
Chapter 13 How to work with sequential files
COBOL for fixed-length records 402
How code select and FD statements 402
How to code Procedure Division statements 404
How to work with file status codes 406
A sequential update program 408
The program specifications 408
The test data and matching reocrd logic 410
The structure chart 412
The COBOL code 414
A sequential maintenance program 420
The program specifications 420
The test data and matching reocrd logic 422
The structure chart 424
The COBOL code 426
Special considerations for sequential update and maintenance programs 434
Error processing for I/O operations 434
Testing and Debugging 436
Design alternatives 438
COBOL for variable-length records 440
How to code FD statements 440
How to write to a file that contains record types with different lengths 442
How to process a file that contains record types with different lengths 444
How to write records with a varying number of segments 446
How to process records with a varying number of segments 448
Perspective 450
t
[Prev]
[Next]
[Book summary]