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
Procedure Division, where the statements are coded
• Arithmetic statements such as
Add, Subtract, Multiply, Divide, and
• Simple data manipulation using the
Procedure Division is where everything happens. The
Procedure Division contains all of your procedural code. It is like the mixing instructions in ...