Debugging with source language

You can use several COBOL language features to pinpoint the cause of a failure in a program.

If a failing program is part of a large application that is already in production (precluding source updates), write a small test case to simulate the failing part of the program. Code debugging features in the test case to help detect these problems:

  • Errors in program logic
  • Input-output errors
  • Mismatches of data types
  • Uninitialized data
  • Problems with procedures

related references  
Source language debugging (Enterprise COBOL for z/OS® Language Reference)