Native Inspect Manual (H06.07+)

Syntax of Native Inspect Commands
Native Inspect Manual528122-006
4-9
Syntax of Common Command Elements
Native Inspect does not support expressions in pTAL. To specify pTAL
expressions, use C-style syntax:
For additional COBOL considerations, see Evaluating Expressions on page 3-10.
Other valid expressions are:
$, $$
refers to the last two values printed. For example, print $$ redisplays
the next-to-last value printed.
$number
refers to results of previous print commands, which are saved on the value
history list. For example, print $1 redisplays the previous value printed
(the output associated with $1), and print $5 redisplays the output
associated with $5.
$register-name
displays the contents of the specified register. For example, print $pc
displays the contents of the $pc register.
pTAL C-Style
x :=y; x = y;
flag := (a<>b); flag = (a !=b);
pTAL pointer example:
int x[0:9];
int .xptr;
...
@xptr ;= @x[0];
...
Using C-style pointers:
To display the address, enter:
p xptr
To dereference ptr (display what
xptr points to), enter:
p *xptr
Variable names are not case-
sensitive.
(To make Native Inspect recognize
pTAL variable names, use the set
command (environment) with the
language ptal option.)
Variable names are case-
sensitive.
COBOL
AX = A1/A2 + A3 * A4
FLAG = (A NOT EQUAL TO B)
Variable names are not case
sensitive.