Cross-Reference Listing

Figure 1 shows the cross-reference listing, which is produced when the XREF option is specified. It provides a list of all data references, procedure-name references, and program-name references, by statement number, within the source program.

Figure 1. Cross-Reference Listing
 5722WDS V5R4M0 060210 LN  IBM ILE COBOL                 CBLGUIDE/SAMPLE          ISERIES1   06/02/15 11:18:21        Page     10
                             C r o s s   R e f e r e n c e
Data References:
Data-type is indicated by the letter following a data-name definition.
These letters and their meanings are:
    E = EXTERNAL
    G = GLOBAL
    X = EXTERNAL and GLOBAL
DATA NAMES                      DEFINED  REFERENCES (* = CHANGED)
   T                               U         V 
ALPHA                               25     43
DEPEND                              28     44
DEPENDENTS                          27     28
FIELD-A                             19
FILE-1                              17     40     49     50     51     56
KOUNT                               23     41*    42*    43     44     48
LETTERS                             24     25
LOCATION                            34
NAME-FIELD                          30     43*
NO-OF-DEPENDENTS                    36     44*    53     54*
NUMBR                               26     41*    42*    45
RECORD-NO                           32     45*
RECORD-1                            18     47*
WORK-RECORD                         29     46     47     51*
WORKPTR                             38
TYPE NAMES                      DEFINED  REFERENCES (* = CHANGED)
SUBSCRIPT-TYPE                      21     23     26
Procedure References:
Context usage is indicated by the letter following a procedure-name reference.
These letters and their meanings are:
    A = ALTER (procedure-name)
    D = GO TO (procedure-name) DEPENDING ON
    E = End of range of (PERFORM) through (procedure-name)
    G = GO TO (procedure-name)
    P = PERFORM (procedure-name)
    T = (ALTER) TO PROCEED TO (procedure-name)
PROCEDURE NAMES                 DEFINED  REFERENCES
STEP-1                              39
STEP-2                              41     48P
STEP-3                              45     48E
STEP-4                              47
STEP-5                              48
STEP-6                              50     55G
STEP-7                              52
STEP-8                              55     52G
Program References:
Program-type of the external program is indicated by the word in a program-name definition.
These words and their meanings are:
    EPGM = a program object that is to be dynamically linked
    BPRC = a COBOL program or a C function or an RPG program that is to be bound
    SYS  = a system program
PROGRAM NAMES                   DEFINED  REFERENCES
SAMPLE                               2
                   * * * * *   E N D   O F   C R O S S   R E F E R E N C E   * * * * *
The cross-reference listing displays the following fields:
 T 
Names field: The data name, type name, procedure name, or program name referenced is listed here. The names are listed alphabetically. Program names may be qualified by a library name.
 U 
Defined field: The statement number where the name was defined within the source program is listed here.
 V 
References field: All statement numbers are listed in the same sequence as the name is referenced in the source program. An * following a statement number indicates that the item was modified in that statement.