Inspect Manual
Using Inspect With COBOL and SCREEN COBOL
Inspect Manual—429164-006
10-5
COBOL85 Examples
COBOL85 Examples
This example assume the COBOL85 program fragment:
IDENTIFICATION DIVISION.
PROGRAM-ID. a.
...
IDENTIFICATION DIVISION.
PROGRAM-ID. b.
...
IDENTIFICATION DIVISION.
PROGRAM-ID. c.
...
END PROGRAM c.
END PROGRAM b.
END PROGRAM a.
Here are some code locations:
Data Locations
Here is the syntax you use to identify COBOL data locations in Inspect.
scope-path
specifies the scope path to the program unit containing the data item.
data-reference
specifies a data item in the program unit defined by the given scope path (or the
current scope path if none is given).
Code
Location Specifies
#A The primary entry point of program unit A.
#A.B The primary entry point of program unit B.
#A.A +1V One COBOL statement past the primary entry point of program
unit A. If any of the data declarations in A include a VALUE
clause, the code offset +1V will perform them. Consequently, this
code location specifies the first user-written sentence in the
program unit.
data-location:
[ scope-path. ] data-reference
data-reference:
identifier [ OF identifier ]... [ (index [ ,index ]...) ]
index:
expression [ :expression ]