Inspect Manual

Using Inspect With COBOL and SCREEN COBOL
Inspect Manual429164-006
10-3
Usage Considerations
statement-number
specifies the statement beginning at the given statement number. To see
statement numbers, use the SOURCE command after you have set your
location format to statements. For more information, see SET LOCATION
FORMAT on page 6-175.
#line-number [ (source-file) ]
specifies the COBOL statement beginning at a given line number in the source
file.
(source-file) qualifies the line number by the source file containing it. You
need to use this option only if the source code for the given program unit is in
more than one file.
offset
specifies an offset from the code location defined by the preceding options. A
positive offset (+) denotes code following the specified code location; a negative
offset (-) denotes code preceding the specified code location. The amount to offset
is specified as a given number of units. If you omit the unit specifier, Inspect selects
STATEMENT as the code unit for COBOL. Inspect code units correspond to
COBOL code units as follows:
Usage Considerations
Low-level code locations
Low-level Inspect recognizes program unit names but does not use any other
symbol information. In low-level Inspect, therefore, you can only use code
locations of the form:
#scope-path [ code-offset ]
This form represents an offset from the code base of a scope unit. Also, the code
unit of code-offset in low-level Inspect is always INSTRUCTION.
High-level code locations
High-level Inspect recognizes program unit names as does low-level Inspect, but it
also uses the symbol information created when you compile a program unit with
the SYMBOLS directive. Therefore, code locations in high-level Inspect can
include section names, paragraph names, or line numbers.
INSTRUCTION
Specifies a machine-code instruction in COBOLþ74 and
COBOL85, or a pseudocode instruction in SCREEN COBOL.
STATEMENT
Specifies a COBOL sentence.
VERB
Specifies a COBOL statement.