Previous Topic: Control CommandsNext Topic: TRACE OFF (A) or (X) Removing a Trace


Trace Generated Only if Command is First Word

Trace statements are generated for the Database and Control commands shown only if one of the commands is the first word on a given source statement line.

For example, in the statement

IF DB-STATUS-OK
    OBTAIN CALC CUSTOMER-RECORD.

trace statements are generated for the OBTAIN command because it is the first word on the line.

But in the statement

IF DB-STATUS-OK
   THEN OBTAIN CALC CUSTOMER-RECORD.

no trace statements are generated because the word THEN precedes the OBTAIN command.