Finding program entity definitions and references
Use the XREF(FULL)
compiler option to
find out where a data-name, procedure-name, or program-name is defined
and referenced. Use it also to produce
a cross-reference of COPY
or BASIS
statements
to the data sets or files from which copybooks
were obtained.
About this task
A sorted cross-reference includes the line number where the data-name, procedure-name, or program-name was defined and the line numbers of all references to it.
To
include only the explicitly referenced data items, use the XREF(SHORT)
option.
Use
both the XREF
(either FULL
or SHORT
)
and the SOURCE
options to print a modified cross-reference
to the right of the source listing. This embedded cross-reference
shows the line number where the data-name or procedure-name was defined.
For further details, see the related reference about the XREF
compiler
option.