z/OS Debugger commands that resemble COBOL statements

To test COBOL programs, you can write debugging commands that resemble COBOL statements. z/OS® Debugger provides an interpretive subset of COBOL statements that closely resembles or duplicates the syntax and action of the appropriate COBOL statements. You can therefore work with familiar commands and insert into your source code program patches that you developed during your debug session.

The table below shows the interpretive subset of COBOL statements recognized by z/OS Debugger.

Command Description
CALL Subroutine call
COMPUTE Computational assignment (including expressions)
Declarations Declaration of session variables
EVALUATE Multiway switch
IF Conditional execution
MOVE Noncomputational assignment
PERFORM Iterative looping
SET INDEX and POINTER assignment

This subset of commands is valid only when the current programming language is COBOL.

  • Related references
  • IBM® z/OS Debugger Reference and Messages