Murach's Mainframe COBOL

Chapter 5 How to use the COBOL features for structured coding
Introduction to structured programming 146
The three valid structures 146
The principles of substitution and combination 148
From theory to practice 148
Shop standards for structured coding 150
How to code conditions 152
How to code relation, sign, and class tests 152
How to code compound conditions 154
How to code and use condition names 156
How to code selection and iteration structures 158
How to code If statements 158
How to code nested If statements 160
How to code Perform Until statements with tests before and after 162
When and how to code inline Perform statements 164
How to code Perform statements with Varying and Times clauses 166
How to use Evaluate statements 168
How to use an Evaluate statement instead of nested If statements 168
How to use Evaluate statements to implement case structures 170
The complete syntax of the Evaluate statement 172
Other features for improved coding 174
How to use Set to True statements 174
When and how to use structured delimiters 176
When and how to use Not clauses 178
A program that prepares a two-level summary report 180
The program specifications 180
The structure chart 182
The COBOL code for the primary control module 184
Three paragraphs written with a modern coding style 186
Perspective 188
t




Murach's Mainframe COBOL

Learn more about this book

View the table of contents

Add this book to your cart