Skip to Content
Beginning COBOL for Programmers
book

Beginning COBOL for Programmers

by Michael Coughlan
March 2014
Intermediate to advanced
588 pages
15h 43m
English
Apress
Content preview from Beginning COBOL for Programmers

CHAPTER 6

image

Control Structures: Iteration

The previous chapter dealt with COBOL’s selection constructs: IF and EVALUATE. In this chapter, you examine the last of the classic structured programming constructs: iteration.

In almost every programming job, there is some task that needs to be done over and over again. The job of processing a file of records is an iteration of this task: get and process record. The job of getting the sum of a stream of numbers is an iteration of this task: get and add number. The job of searching through an array for a particular value is an iteration of this task: get next element and check element value. These jobs ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Ultimate Go Programming, Second Edition

Ultimate Go Programming, Second Edition

William Kennedy
Clean Code Fundamentals

Clean Code Fundamentals

Robert C. Martin
Head First Java, 3rd Edition

Head First Java, 3rd Edition

Kathy Sierra, Bert Bates, Trisha Gee

Publisher Resources

ISBN: 9781430262534Purchase book