Diagnosing problems in a program

When you encounter an error in a program, there are several ways to locate the error.

  • The TRACE instruction shows how the language processor evaluates each operation. For information about using the TRACE instruction to evaluate expressions, see Tracing expressions with the TRACE instruction. For information about using the TRACE instruction to evaluate host commands, see Tracing commands with the TRACE instruction.
  • REXX/CICS sets the special variables RC and SIGL as follows:
    RC
    Indicates the return code from a command.
    SIGL
    Indicates the line number from which there was a transfer of control because of a function call, a SIGNAL instruction, or a CALL instruction.