Good book on classic structured programming in COBOL
It is very hierarchical in its approach.
It covers structure more than code reuse.
For a small COBOL book, it is good to provide examples of different program types in an introductory COBOL book:
- A CICS example
- Two DB2 examples
It briefly discusses in-line perform statements.
It does not discuss the following:
- Nested COBOL programs
- Using Conditional Compilation
--- In mainframe, only recently available.
- Omitting periods within a paragraph
- Using underscores in labels
Coverage on CICS programming brings up one topic:
- D.R.Y. - Do Not Repeat Yourself.
The coding of maps separate from programs in CICS invoke a lot of repetitive code.
I bought the book because I remember a small code snippet of very hard-to-read code. That was an example of bad code one might find in the wild.
Other COBOL books to consider:
- O'Reilly - Modern Mainframe Development
- Advanced COBOL by Gary Brown
- COBOL for the 20th Century by Nancy Stern
More modern works to consider while improving code:
- Clean Code by Robert Martin
- Pragmatic Programmer
- Code Complete by Microsoft Press
- Beautiful Code
The above are for the classic curly bracket languages, but are good reads.