EasyManua.ls Logo

IBM 5100 - Page 157

IBM 5100
228 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
(
(
'""
" "
Trace control can also be set by
statements
within a function. These
statements
initiate tracing when a variable contains a certain value. For example:
I:
:1,]
[2]
[3]
[4]
[~:'i]
VBTEVEf:I]J'\I
V
STEVE
I
f.,~·l
X I
T
oSTEVE
~":3
X
F,:::2-Trace
statement
3
in
function STEVE
C~
..
3 X I when A equals 2.
It~
..
I+
X I
A+C+D
STEVE 2
8TEVE[:3] 6
16
STEVE
::~
2'+
Note: The following instruction will establish trace control for
the
first
statement
of
each user-defined function in
the
active workspace:
J.
"'l
t,
I 0 ' , '
(.)
· , T · ) ,
IJ.
' } ( (
(I]NL
:3)"
'~
..
' ) } ,
:l
' ) J '
This instruction can be used
to
find
out
what
functions are called by
another
function.
The following user-defined function named TRACE will establish a trace vector
for each
statement
in a specified user-defined function:
VTRACE[DJV
'iJ
TRACE
NANE
[1]
!'T6',NAME,
'~\ltpOCR'"
,NAME,
V
153

Table of Contents

Other manuals for IBM 5100

Related product manuals