COBOL Programming (5-day) : Detailed Course contents
Introduction to COBOL
Development of COBOL.
Program translation: compilation, linkage editor.
Common compilation errors, compiler options.
Divisions of COBOL, COBOL syntax and format, COBOL character set, program source structure.
COBOL statement structure
COBOL words, format of statements.
File description (FD), record descriptions, hierarchy and level numbers, description-string entry.
Literals, figurative constants, redefines clause,
data representation, the Usage clause, synchronization, sign clause.
The Procedure Division
File status codes; file statements: Open, Read, Write, Close, Stop, Goback; Accept and
Display; Move statement, Justified clause, qualification of data names, Reference Modification.
Out-of-line, With test ... Until, ... Times, in-line statement; Go to statement.
Describes program design techniques, design considerations, procedure names, program structure.
Printed output, Write statement with the advancing option, editing characters; Initialize statement.
Environment Division clauses
Conditional statements: IF statement, class condition, sign condition, relation condition, condition-name
conditionals (level 88), Set statement for condition-names, nested If statements, compound conditions, logical
operator - OR with AND.
Evaluate statement, Continue statement.
Arithmetic statements: Rounded option, On Size Error option, Add statement, Subtract statement,
Multiply statement, Divide statement, Compute statement.
File access modes, Select for Indexed files, Select for Relative files.
Accessing Indexed and Relative files
Open statement, Close statement, creating a file - Sequential access, Write statement, Reading a
file - Sequential access, Read statement, Invalid key clause, Reading a file - Random and Dynamic
access, Writing to a file - Random access, Updating a file - Random access, Rewrite statement,
Delete statement, Start statement, Reading a file - Dynamic access.
Call statement, Using clause - calling program, Using clause - called program, Linkage Section,
returning control from a called program.
Single dimensional tables, Perform and single dimensional tables, two-dimensional
tables, Perform and two dimensional tables, three dimensional tables, Perform and three dimensional
tables, variable length tables.
Set statement, storing an index, using an index, Perform example using a two dimensional table;
Copy statement, Suppress, Replacing.
Inspect statement, String statement, Unstring statement.
LE/370 and Intrinsic Functions.
page updated: 27/12/09
© 2010 MKCT Ltd.