CROSSREF Manual
COBOL 74
Sample Listing
Figure 6-2 shows the first page of the cross-reference listing.
This is the cross-reference file list. It lists the name of each
source file that CROSSREF scanned. In this example, only one
file, COBEX, was scanned.
PAGE 1
CROSSREF - CROSS-REFERENCE PROGRAM - T9622C00 - (15JUL87)
Copyright Tandem Computers Incorporated 1982, 1983, 1984, 1985, 1986
FILE NO. FILE NAME
[1] $EM2.UCREF.COBEX
Figure 6-2. CROSSREF Listing--File List
The identifier list makes up the rest of the cross-reference
listing. See Figure 6-3. The identifier list describes each
identifier in alphabetic order, showing:
• How it is defined (its attributes)
• Where it is defined (file name and number and line number)
• Where and how it is used in the program
Look at the entry for CAPTURE-CPU-PIN. The identifier header
indicates that it is the name of a paragraph that belongs to the
section named AA. It is defined in the file COBEX at line 200.
The reference line indicates that the identifier is referenced in
the file COBEX at line 194.
Now look at the entry for the identifier named MEMORY-AS-USUAL.
The identifier header indicates that it is part of the group data
item SAVE-MESSAGE-STUFF. It is a level-5 numeric computation
item in the Working-Storage section. Its size is 2 bytes,
indicating that it is a 1-word integer. Its offset is 32, which
means that it begins at the thirty-second position of the record
SAVE-MESSAGE-STUFF.
The reference line indicates that the identifier is referenced in
the file COBEX at line 141.
6-9