SET TRACE

Controls command tracing.

Syntax

SET [LOCAL] TRACE ON|OFF

Parameters

LOCAL

Indicates that command tracing is to be switched ON or OFF at the "local" level only.

Comments

The SET TRACE command controls command tracing. When TRACE is switched ON, each line of a procedure is displayed as it is executed. Each line is preceded by the procedure name and document line number as shown in the following example:

pCustReport[19] report from Customers \

SET TRACE has no effect on compiled application programs.
SET TRACE is not affected by the SET RESET and SET RESTORE commands.

Example

To display the instructions in the procedure MyProg as they are executed, use

set trace on
MyProg

 

Related Topics