Hour 5Procedure Division

In Hour 4, “Basic User Interface,” you learned about the different types of data declared within a COBOL program. In this hour, you learn how to use that data in your programs. The main thrust of any programming language is the manipulation of the input data. This lesson covers the mathematical and basic data manipulation statements used in COBOL, such as

• The Procedure Division, where the statements are coded

• Arithmetic statements such as Add, Subtract, Multiply, Divide, and Compute

• Simple data manipulation using the Move statement

Procedure Division Organization

The Procedure Division is where everything happens. The Procedure Division contains all of your procedural code. It is like the mixing instructions in ...

Get Sams Teach Yourself COBOL in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.