Controls lexical tracing.
SET [LOCAL] LEXTRACE ON|OFF
|LOCAL||Indicates that lexical tracing is to be switched ON or OFF only at the “local” level.|
The LEXTRACE option is set OFF by default.
When LEXTRACE is ON, each line of a procedure is displayed on the terminal, one character at a time, as it is parsed. Each line is preceded by the procedure name and document line number. If an error occurs, the resulting error message appears immediately following the character that caused the error.
Comment lines are traced. Carriage returns are inserted into the output when continuation characters (backslashes) are encountered. Statements are shown after macro substitution (if any) is complete.
Each output line starts with the procedure name and the application document line number as shown in the following example:
pCustReport report from Customers
The SET LEXTRACE command has no effect on compiled procedures.
The SET LEXTRACE command is not affected by the SET RESET and SET RESTORE commands.