Procedure Division Basics
The three preceding chapters covered much of the background material you need before you can write useful programs. Chapter 1 was motivational, Chapter 2 dealt with the structure of COBOL programs, and in Chapter 3 you learned how to define the data storage that dynamic programs require to be useful.
The PROCEDURE DIVISION contains the code used to manipulate data described in the DATA DIVISION. This chapter examines some of the basic PROCEDURE DIVISION commands. You learn how to get data from the user, how to use the COBOL arithmetic verbs to do calculations on the data, and how to display the results on the ...