Know Db2

Structured Basic COBOL Programming 

This fundamentals class covers the use of structured COBOL programming techniques to design, code and test COBOL programs

Duration: 5 Days, hands - on Labs.

Audience: This course is designed for application programmmers and systems analysts who are or will be using COBOL 85 standard from COBOL for MVS thru Enterprise COBOL.

Prerequisites: A background in Introduction to Data Processing, a background in using an editor, job submission and looking at the output. Basic TSO/ISPF skills.

Structured Basic COBOL Programming Class Outline:

Introduction to COBOL

  • History and Versions of COBOL
  • Structure of a COBOL Program
  • COBOL Language Structure
  • Coding Rules in COBOL
  • COBOL Method Definitions
  • - IDENTIFICATION DIVISION
  • - ENVIRONMENT DIVISION
       (INPUT-OUTPUT SECTION ONLY)
  • - DATA DIVISION
  • - PROCEDURE DIVISION
  • Example of a simple program structure
  • Lab: Create our first program
  •  

Data

  • Variables, Literals and Figurative Constants
  • Define the variable, literals, and figurative constants
      in COBOL
  • Data types in COBOL
  • Level Numbers in COBOL
  • DISPLAY and MOVE in COBOL
  • Moving a value to an identifier in COBOL
  • Records and Files
  • Fields,Structures,PICTURE
  • Working-storage
  • Lab: Working storage in a program
  •  

Input/Output Options

  • Loop Control
  • Using OPEN, READ, WRITE, CLOSE
  • File Handling
  • Record Building
  • Using GOTO, EXIT PROGRAM, STOP RUN, GO BACK
  • Look at Data Manipulation
  • Lab: Working with input/output options in a
      COBOL Program
  •  

Processing Input and Output

  • ACCEPT statement with SYSIN and SYSOUT
      Parameter of JCL
  • DISPLAY and MOVE in COBOL
  • PERFORM UNTIL
  • Moving a Value to an identifier in COBOL
  • Move Mode and Locate Mode Processing
  • Buffers
  • End of File Processing
  • Data Element Naming
  • Lab: Working with DISPLAY/MOVE
  •  

Numeric Data / Arithmetic Operations

  • Packed decimal data
  • Binary integer data
  • ADD
  • SUBTRACT
  • MULTIPLY
  • DIVIDE
  •  

Numeric Data / Arithmetic Operations - continued

  • COMPUTE
  • USAGE
  • Lab: Working with numeric data
  •  

Conditional Processing

  • IF-ELSE Statement
  • Example of IF-ELSE statement in COBOL
  • EVALUATE statement in COBOL
  • Different Types of EVALUATE statements
  • Example of EVALUATE Statement
  • Different Types of PERFORM Statements
  • REDEFINES and RENAMES
  • User-defined Classes
  • COPY Statement
  • Lab: Working with conditional processing
  •  

File Handling

  • Different types of files in COBOL
  • Details about Sequential Files
  • Options for Sequential Files
  • File Handling - OPEN and READ
  • File Handling - WRITE and START
  • REWRITE, DELETE and CLOSE
  • Lab: Coding a Program using
      sequential file/write records to the output file
  •  

String Handling in COBOL

  • String operations in COBOL
  • STRING operations detail
  • A Program to perform STRING Operations
  • Understand UNSTRING Operation
  • Sample UNSTRING Program
  • UNSTRING Operation detail
  • Analyze the output of the UNSTRING Operation
  • Lab: Code a PROGRAM to execute INSPECT
  •  

Arrays

  • Definition of an array
  • Creating a one-dimensional array
  • Creating a two-dimensional array
  • INDEXED BY arrays
  • SUBSCRIPT in arrays
  • Difference between SUBSCRIPT and INDEX
  • Lab: Working with Arrays
  •  

Print Files

  • Page Break Logic
  • Control Fields
  • Logic for Control Fields
  • Report Break Logic
  • End of File Logic
  • Report Dates
  • Line Counting
  • Lab: Using Page and Control Breaks
  •  

 

 

  • © Computer Business International, Inc.

 

Would you like to schedule or customize this class?
Please call our toll free number 1.866.224.4968 or email us at info@cbi4you.com.