SET TRACE

SET TRACE

Welcome to our Knowledge Base

Documentation | Blog | Demos | Support

< All Topics
Print

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

 

See Also

SET COMMANDTIMING

SET LEXTRACE

SET TRACEOUTPUT

Was this article helpful?
0 out of 5 stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
5
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.

Leave a Reply

Your email address will not be published. Required fields are marked *

en_CAEnglish