Controls command tracing.
SET [LOCAL] TRACE ON|OFF
|LOCAL||Indicates that command tracing is to be switched ON or OFF at the “local” level only.|
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 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.
To display the instructions in the procedure MyProg as they are executed, use
set trace on