Go BackCompiling and Debugging the New COBOL

Synopsis
This course discusses the impact of compiler and debugging changes between  OS/VS COBOL and  the ANSI 85 COBOL standard, including the 1989 addendum.

Audience
This course is for COBOL programmers

Time
4-7 hours, based on a student interacting with approximately 60 - 120 screens per hour.

Product Code: COB304
After completing this course, the student should be able to:
 
Explain types of data references used in the CALL statement
Code subprogram linkages
Control the source listing format
Create load modules using new compiler options
Add debugging statements to the COBOL source
Describe the debugging compiler options
Invoke the DEBUG Tool
Debug a program interactively

Unit A:  Combining Programs
Describes how to use subprograms.  Covers using programs written in different languages.  Explains types of program links.  Discusses options for mixing older COBOL load modules.  
 
Subprograms and Interoperability
Format of the CALL statement.  Choices of passing data to subprograms.  BY VALUE and BY REFERENCE.  Recursive programs and LOCAL-STORAGE.  CALL ...RETURNING statement.  Defining pointers.  PROCEDURE-POINTER.
Program Linkage
Differences between static and dynamic calls.  Resolving calls by the binder.  Specifying addressing mode.  Determining program residence.  Mixing load modules.  Using the IGZBRDGE macro.  31-bit operating requirements.  Load module attributes.  RES and RENT options.  Overriding defaults.  



Unit B: Using Compilers
Covers adding compiler directives to the COBOL source code.  Explains how to use the new compiler options.
 
Compiler-directing Statements
Defining listing titles.  Format of the TITLE statement.  Controlling the amount of compiler output.  CONTROL statement.  Assigning compiler options in the source code.  PROCESS compiler directive.  
Compiler Options
Equivalent compiler options.  Size restrictions.  Compiler options SSRANGE, NOSSRANGE, RENT, DATA, FASTSRT, NUMPROC, WORD.


Unit C: Debugging
Explains how to add debugging statements to the COBOL source.  Explains the debugging compiler options.  Describes debugging a program interactively using the Debug tool.
 
Source Language Debugging
Tracing logic.  Using the DISPLAY statement.  USE FOR DEBUGGING clause.  The DEBUG-ITEM special register.  DEBUG  compiler option.  Compiler error codes.  Controlling compiler error printing.  FLAG,  FDUMP, and DUMP compiler options.
Using TEST
Interactive debugging requirements.  Adding source code hooks.  The TEST compiler option.  Conflicts between the TEST compiler option and DEBUG run-time.  Types of debugging sessions.  The TEST run-time format.  Full screen session windows.   Entering Debug Tool commands.


 

Go Back