Tracing Commands with the TRACE Instruction

The TRACE instruction has many options for various types of tracing, including C for commands and E for errors.

TRACE C

After TRACE C , the language processor traces each command before execution, then executes it and sends the return code from the command to the current terminal output device. For more information on specifying the current terminal output device, refer to the SET TERMOUT command.

TRACE E

When you specify TRACE E in a program , the language processor traces any host command that results in a nonzero return code after execution and sends the return code from the command to the terminal.

If a program includes TRACE E and issues an incorrect command, the program sends error messages ,the line number, the command, and the return code from the command to the output stream.

For more information about the TRACE instruction, see section TRACE.



trace2.html | Timestamp icon Last updated: Monday, 5 June 2017