Native Inspect Manual (H06.04+)
Using Native Inspect With COBOL Programs
Native Inspect Manual—528122-005
3-2
Displaying Source Lines
Displaying Source Lines
In a program consisting of multiple files, Native Inspect handles the list command as
follows:
•
If the list command specifies a file name, Native Inspect lists the contents of that
file.
•
If the list command does not specify a file name, Native Inspect lists the contents of
the last source file listed since execution was last suspended.
•
If no source file was listed since execution was last suspended, Native Inspect
displays the contents of the file where execution is currently suspended.
Specifying Variables and Tables
Specifying Variables
To reference a variable that is a unique member of only one record in a COBOL
program, you simply specify the variable name. For example, consider the following
declaration in a COBOL program:
01 REC.
02 VAR NATIVE-2.
02 STR PIC X(9).
As long as the variables are unique within the program unit, you can specify the
variable VAR and STR in any Native Inspect command that accepts a variable name.
However, if a variable is not unique within the program unit (that is, if the same variable
name is declared in more than one record, you must qualify the variable name with the
record name using the COBOL reserved word IN or OF, or using period (.) syntax). For
example, consider the following declaration:
01 REC.
02 INT PIC X(10).
02 VAR PIC X(10).
02 REC2.
03 INT PIC X(13).
03 VAR2 PIC X(14).
Note.
•
Native Inspect does not expand SOURCE and COPY directives to list their source inline.
To display source lines included by SOURCE and COPY directives, use a separate list
command, as described under Displaying Lines Included by SOURCE and COPY
Directives on page 3-1.
•
The list command does not display the results of string substitution done by a REPLACE
statement or a REPLACING clause.










