HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)

2-: 47
unit that contains it. The OPTION NOTRACE statement disables the trace
statements in the program unit that contains it. If a program unit
contains neither an OPTION TRACE nor an OPTION NOTRACE statement, the
global option applies (its default is GLOBAL OPTION TRACE).
Syntax
OPTION TRACE
{NO TRACE}
OPTION {NOTRACE }
The OPTION TRACE and OPTION NOTRACE statements can appear anywhere in a
program unit. The highest-numbered TRACE statement affects the entire
program unit the entire time that the program unit is executing.
Example
100 TRACE LINES
110 READ A,B
120 IF A=B THEN GOTO 140
130 PRINT "A<>B"
140 PRINT "A=B"
.
.
.
200 OPTION TRACE
.
.
.
300 OPTION NOTRACE
999 END
In the above program, the OPTION NOTRACE statement at line 300 disables
the trace statement at line 100, despite the OPTION TRACE statement at
line 200. HP Business BASIC/XL does not trace the branch from line 120
to line 140 when the program runs.
The Program Analyst
The interpreter maintains extensive data structures that describe the
current program. That information can be valuable for developing and
maintaining programs. The Program Analyst is an environment that makes
this information available and provides tools for analyzing the
information. The Program Analyst can be used for design optimization,
memory usage analysis, program statistics information, and optimization
of subunit sizes.
ANALYST
The ANALYST command enters the Program Analyst environment. The
following conditions must be met to successfully run the Program Ana-
lyst: