Overview
Recaps the structural components that make up all COBOL programs. Re-examines the sample program.
| Program Structure |
Divisions and subdivisions of COBOL programs. Functions of each division.
| Course Example |
Three preliminary steps to complete before coding. Problem analysis and program design for the sample COBOL program.
One-Time Tasks
Describes the tasks normally done one time in a program.
| OPEN, CLOSE, STOP RUN Statements |
Purpose and format of the OPEN, CLOSE and STOP RUN statements.
| PERFORM Statement |
Purpose and format of the PERFORM statement. Function of an UNTIL condition. In-line and out-of-line PERFORMs.
Reading & Writing Data
Describes the statements and logic needed to read and write data in a VS COBOL II program.
| READ Statement |
Purpose and format of the READ statement. Function of the AT END clause. Use of the SET statement.
| WRITE Statement |
Purpose and format of the WRITE statement.
Moving Data
Describes moving data with the MOVE statement. Compares moving numeric and non-numeric data. Explains how to initialize data areas.
| MOVE Statement |
Purpose and format of the MOVE statement.
| Numeric & Non-numeric Moves |
Characteristics of non-numeric moves. Features of numeric moves. Use of group items, literals and SPACE.
| Coding |
MOVE statements that build the output record.
Conditional Processing
Describes some of the conditional processing that can be accomplished with the IF statement.
| IF Statement |
Purpose and format of the IF statement. Function of the CONTINUE statement. Features of the condition in an IF statement.
| Non-numeric & Numeric Comparisons |
Characteristics of non-numeric and numeric comparisons.
| Coding |
The IF statement that correctly executes the MOVE and WRITE statements in the sample program.
Additional Specifications
Describes how to modify the sample program so that the output records are counted and a total is printed.
| Arithmetic Operations |
The type of data for arithmetic operations and valid operands. Ways to initialize a numeric storage area. Purpose and format of the INITIALIZE statement.
| Addition |
Purpose and format of the ADD statement.
| Subtraction, Multiplication, Division |
Purpose and format of the SUBTRACT, MULTIPY and DIVIDE statements.
| Counting Output Records |
Changes needed in the sample program's Working-Storage Section and Procedure Division.
| Printing |
Purpose and format of the DISPLAY statement. Modifying the sample program to print the total number of output records.
|