TR
Traces Proc execution and displays each command as it is executed.
Syntax
TR {ON}
TR OFF
Operation
TR or TR ON turn the trace on while TR OFF turns the trace off.
This command is very helpful in troubleshooting Proc aborts, because it allows you to identify the statement that caused the abort.
Statements that are parsed more than once, such as the IF command when true, are displayed one time for each parsing; subsequent displays omit the command portion of the statement that has already been processed.
Example
001 PQN 002 5 T "ENTER A NUMBER FROM 1 TO 3" 003 TR 004 IP:%3 005 IF %3 = 1]2]3 G 10]20]30 006 10 T "CONTAINS A 1"\G 5 007 20 T "CONTAINS A 2"\G 5 008 30 T "CONTAINS A 3" . .
The TR command on line 003 turns the trace on, so that each command is displayed on the screen as it is executed.