COBOL Programming - Fast Track

Course Description

This course provides a fast-paced introduction to the most commonly used components of the language, and covers the ANSI-89 release of COBOL.
5 Days
Contact us for pricing
 

Prerequisites

An aptitude for programming, as well as proficiency using a text editor.

Audience

The course is intended for programmers who are new to the COBOL programming language or delegates who have no programming experience, but who require formal training in the basics of the language.
The course is designed to be fast-paced. If the delegate has no concept of program design or is from a non-technical background, our 5 or 10-day courses are recommended.

Course Objectives

On completion of this course, participants will be able to:

Make effective use of all main fundamental COBOL verbs and keywords.
Define and use internal and external data, correctly.
Use COBOL statements to process sequential files.
Perform Arithmetic operations.
Understand, create and process one-dimensional tables.
Apply copy code to a program.
Write programs in a maintainable and efficient manner using structured code.
Test programs and, where necessary, debug them.

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.

Identification Division

Entries.

Environment Division

Entries.

Data Division

Entries.

File Section

File description (FD)
Record descriptions
Hierarchy and level numbers
Description-string entry

Working-Storage Section

Literals
Figurative constants
Redefines clause
Data representation
The Usage clause
Synchronisation
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

Perform statement

Out-of-line, With test.....Until,.... Times, in-line statement
Go to statement

Program design

Describes program design techniques, design considerations, procedure names, program structure.

Printing

Printed output
Write statement with the advancing option
Editing characters
Initialise statement.

Environment Division clauses

Other entries.

Condition testing

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

Arithmetic statements:
Rounded option
On Size Error option
Add statement
Subtract statement
Multiply statement
Divide statement
Compute statement

Table handling

Subscripted tables: Single dimensional tables, Perform and single dimensional tables, variable length tables
Indexed tables: Set statement, storing an index, using an index,
Perform example using a two-dimensional table
Search statement

Copy code

Copy statement
Suppress
Replacing

COBOLCOBOL Programming