Rational Developer for System z provides a debugger. Use the TEST compiler option to prepare your COBOL program so that you can step through the executable program with the debugger.
Alternatively, you can use the -g option of the cob2 command to prepare your program to use the debugger.
related tasks
Compiling from the command line
related references
TEST