Inspect Manual

Inspect Manual429164-006
10-1
10
Using Inspect With COBOL and
SCREEN COBOL
Scope Units and Scope Paths on page 10-1
Code Locations on page 10-2
Data Locations on page 10-5
Expressions on page 10-8
COBOL Data Types and Inspect on page 10-9
Inspect Enhancements and Restrictions for SCREEN COBOL on page 10-10
Command Usage Guidelines for COBOL Programmers on page 10-11
Scope Units and Scope Paths
COBOL has only one type of scope unit: the program unit. When debugging a
program written in COBOL, you must specify a program unit name whenever an
Inspect command expects a scope unit.
Here is the syntax you use to identify COBOL scope paths in Inspect.
COBOL 74 and SCREEN COBOL
scope-path:
#program-unit
COBOL85
scope-path:
#program-unit [ .program-unit ]...
program-unit
is the name of a program unit.
Usage Considerations
COMMON program units
Inspect does not support the special scoping rules that COBOL85 provides for
COMMON program units. In COBOL85, such program units are globally visible,
regardless of where they are declared. In Inspect, however, you must provide the
scope path to a COMMON program unit.
Note. In this section, the term COBOL refers to COBOL 74, COBOL85, and SCREEN
COBOL.