Rational Developer for System z
COBOL for Windows, Version 7.5, Programming Guide


XREF

Use XREF to get a sorted cross-reference listing.

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

Default is: XREF(FULL)

Abbreviations are: X|NOX

You can choose XREF, XREF(FULL), or XREF(SHORT). If you specify XREF without any suboptions, XREF(FULL) is in effect.

Names are listed in the order of the collating sequence that is indicated by the locale setting. This order is used whether the names are in single-byte characters or contain multibyte characters (such as DBCS).

Also included is a section that lists all the program-names that are referenced in your program and the line numbers where they are defined. External program-names are identified.

If you use XREF and SOURCE, cross-reference information is printed on the same line as the original source. Line-number references or other information appears on the right-hand side of the listing page. On the right of source lines that reference an intrinsic function, the letters IFN are printed with the line number of the locations where the function arguments are defined. Information included in the embedded references lets you know if an identifier is undefined (UND) or defined more than once (DUP), if items are implicitly defined (IMP) (such as special registers or figurative constants), or if a program-name is external (EXT).

If you use XREF and NOSOURCE, you get only the sorted cross-reference listing.

XREF(SHORT) prints only the explicitly referenced data items in the cross-reference listing. XREF(SHORT) applies to multibyte data-names and procedure-names as well as to single-byte names.

NOXREF suppresses this listing.

Usage notes

related concepts
Debugging

related tasks
Getting listings


Terms of use | Feedback

Copyright IBM Corporation 1996, 2008.
This information center is powered by Eclipse technology. (http://www.eclipse.org)