Labs - COBOL (z/OS) - COBOL Basics
Duration
10 hours
Overview
The Labs - COBOL (z/OS) - COBOL Basics course provides a range of exercises that can be run in your organization’s mainframe training sandbox. Initial exercises focus on compiling, binding and executing existing COBOL programs, and then move to creating basic COBOL code used to display formatted output.
Audience
Programmers who need to use COBOL in a z/OS environment.
Prerequisites
- A solid understanding of COBOL or the successful completion of the following Interskill courses:
- COBOL Programming - Basics
- IBM COBOL for z/OS
Objectives
- After completing this course, the student will be able to:
- Create and debug a batch job to compile, bind, and execute a COBOL module
- Define COBOL program input and output requirements
- Define strings, numbers, and dates
- Code an inline subroutine
Course Content
Compiling, Binding, and Running a COBOL Program
Identifying Compiling Problems
Binding Issues
Invoking a COBOL Program in Batch
Questions
Batch Parameters and Return Codes
Passing Parameters to a COBOL Program
Checking for Valid Input
RETURN-CODE Special Register
Displaying Results
Questions
Manipulating String Data and Dates
Reading Data from SYSIN
ACCEPT Statement
Error Checking
REVERSE and UPPER-CASE Intrinsic Functions
INSPECT Statement with TALLYING Phrase
CURRENT-DATE Intrinsic Function
DATE-OF-INTEGER and INTEGER-OF-DATE Intrinsic Functions
Questions
Basic Arithmetic Calculations
PERFORM Statement
COMPUTE Statement
ON SIZE ERROR Phrase
Questions