Inspect Manual

Using Inspect With COBOL and SCREEN COBOL
Inspect Manual429164-006
10-2
Code Locations
Code Locations
Here is the syntax you use to identify COBOL code locations in Inspect.
scope-path
specifies the scope path to the program unit containing the code location. When
used alone, scope-path specifies the primary entry point of the last program unit
named in the scope path. When followed by a code offset, scope-path specifies
the base of the program unit.
[ scope-path. ] code-spec
specifies a named or numbered location in the program unit defined by the given
scope path (or the current scope path if you omit the scope path).
program-unit
specifies the primary entry point of the program unit. program-unit must be the
same as the last program unit named in scope-path (or the current scope
path).
section
specifies a section within the program unit.
paragraph [ OF section ]
specifies a paragraph within the program unit. If a paragraph named
paragraph exists in two different sections of the program unit, you must use
the OF clause to qualify the paragraph name.
code-location:
{ scope-path } [ offset ]...
{ [scope-path.]code-spec }
code-spec: one of
program-unit
section
paragraph [ OF section ]
statement-number
#line-number [ (source-file) ]
offset:
{ + | - } num [ code-unit ]
code-unit: one of
INSTRUCTION[S]
STATEMENT[S]
VERB[S]