XREF

The XREF option provides a cross-reference table of names used in the program together with the numbers of the statements in which they are declared or referenced in the compiler listing.

Read syntax diagramSkip visual syntax diagram
   .-NOXREF-----------------------.   
>>-+-XREF--+--------------------+-+----------------------------><
           |    .-FULL--.       |     
           +-(--+-SHORT-+--)----+     
           |    .-IMPLICIT-.    |     
           '-(--+-EXPLICIT-+--)-'     

ABBREVIATIONS: X, NX

FULL
Under XREF(FULL), all identifiers and attributes are included in the compiler listing. FULL is the default.
SHORT
Under XREF(SHORT), unreferenced identifiers are omitted from the compiler listing.
EXPLICIT
Under XREF(EXPLICIT), a reference to a structure causes only that structure to be included in the compiler listing.
IMPLICIT
Under XREF(IMPLICIT), a reference to a structure causes the structure and all of its members to be included in the compiler listing. IMPLICIT is the default.

The only names not included in the cross reference listing created when you use the XREF option are label references on END statements. For example, assume that statement number 20 in the procedure PROC1 is END PROC1;. In this situation, statement number 20 does not appear in the cross reference listing for PROC1.

If you specify both the XREF and ATTRIBUTES options, the two listings are combined. If there is a conflict between SHORT and FULL, the usage is determined by the last option specified. For example, ATTRIBUTES(SHORT) XREF(FULL) results in the FULL option for the combined listing.