XREF

Read syntax diagramSkip visual syntax diagramXREF(SHORT,UNREFS)XREF(FULL,SHORTUNREFS)NOXREF
Default
XREF(SHORT,UNREFS)
Abbreviations
None
FULL
Instructs the assembler to produce the Ordinary Symbol and Literal Cross Reference section of the assembler listing. This includes symbols that are defined, but never referred to.
SHORT
Instructs the assembler to produce the Ordinary Symbol and Literal Cross Reference section of the assembler listing. Symbols that are defined, but not referred to, are not included in the cross-reference listing. SHORT can be specified with the UNREFS suboption to produce a list of unreferenced symbols. The SHORT suboption cannot be specified with the FULL suboption.
UNREFS
Instructs the assembler to produce the Unreferenced Symbols Defined in CSECTs section of the assembler listing. The symbols are listed in symbol name order. UNREFS can be specified with the SHORT suboption to produce a cross-reference list of referenced symbols. The UNREFS suboption cannot be specified with the FULL suboption.
NOXREF
Specifies that symbol cross-reference information is not generated as part of the assembly listing.

Any suboption you specify overrides the suboptions specified in the installation default options, unless the XREF option is fixed.

If you specify the XREF option more than once, the assembler uses the last one you specify. For example, if you specify XREF(SHORT),XREF(UNREFS), the assembler uses XREF(UNREFS). To use both suboptions, specify XREF(SHORT,UNREFS).

On z/VSE®, you can use the XREF option of the JCL OPTION statement to specify the XREF(FULL) assembler option, and the SXREF option of the JCL OPTION statement to specify the XREF(SHORT) assembler option.