Native Inspect Manual (H06.04+)

Using Native Inspect With COBOL Programs
Native Inspect Manual528122-005
3-6
Displaying Argument Values
The following Native Inspect commands display the values indicated:
Displaying Argument Values
By default, Native Inspect displays only the addresses of program and function
arguments when a breakpoint is encountered, a backtrace is done, or execution steps
into a function. To display the actual argument values on the occurrence of any of
these events, specify the command:
set print cobol-arg-values on
Handling of REDEFINES and RENAMES
Native Inspect treats variables named in a REDEFINES or RENAMES clause the
same as other variables in the record. Thus, when Native Inspect displays a record,
the REDEFINE and RENAME variables are also shown. For example, consider the
following declaration:
01 REDEF.
02 NAME PIC A(30).
02 OTHER-NAME REDEFINES NAME.
03 FIRST-NAME PIC A(20).
03 LAST-NAME PIC A(10).
66 FNAME RENAMES FIRST-NAME.
66 LNAME RENAMES LAST-NAME.
The command print REDEF displays all items in the record, including
OTHER-NAME, FNAME, and LNAME:
NAME=...
OTHER-NAME=
FIRST-NAME=
LAST-NAME=...
FNAME=...
LNAME=...
Assigning Values to Data Items
Assigning Values to Variables
Native Inspect provides two ways of assigning values to data items:
Using the set command.
Using the command print data-item = value.
print COND-1 displays the value ‘T’ because the value of COND-1
matches the value of VAR.
print COND-2 displays the value ‘F’.
print VAR displays the actual value stored in VAR (in this case, 1).