Debugging Programs
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 section Tracing Expressions with the TRACE istruction . For information about using the TRACE instruction to evaluate host commands , see the next section, 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.