Audience
Application programmers with some experience in COBOL who require formal training in the advanced language features and programming techniques in the IBM z/OS COBOL environment.
Prerequisites
Attending our COBOL Programming Part 1 course, or an equivalent level of knowledge, is assumed.
Duration
5 days. Hands on.
Course Objectives
This course is designed to improve students' knowledge of COBOL. Each delegate will write, execute and debug COBOL programs which stress the advanced features of the language. This will include multi-dimensional and variable length tables, sub-program calls and VSAM file manipulation. Programming standards and style will be addressed throughout.
Course Content
Module 1: Working with Dates
Day, Date and Time functions in COBOL
Module 2: Character manipulation
COBOL character functions
Lower-case
Upper-case
Length
Reverse
Ord
Char
String
Unstring
Inspect
Module 3: Arrays and Tables
Defining Arrays
2D arrays
Multi-dimensional arrays
Subscripting vs Indexing of arrays
Sequential search
Binary search
Module 4: Sub-programs
Call instruction
Static vs Dynamic calls
GOBACK vs EXIT Program
Handling parameters
Return codes
Module 5: Indexed File Processing
VSAM KSDS
Sequential vs by Key
Open
Close
Read
Write
Rewrite
Close
Select
FD
VSAM File status
Module 6: Relative Record File Processing
VSAM RRDS
Select
FD
Open
Close
Read
Write
Rewrite
Start
Delete