CROSSREF Manual

COBOL85
Sample Listing
Figure 7-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, COBEX85, 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.COBEX85
Figure 7-2. CROSSREF Listing--File List
The identifier list makes up the rest of the cross-reference
listing. See Figure 7-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 on page two of the
listing. 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 COBEX85 at line 200.
The reference line indicates that the identifier is referenced in
the file COBEX85 at line 150.1 (indicated by code M).
Now look at the entry for the identifier named MEMORY-AS-USUAL
on page two of the listing. The identifier header indicates
that it is part of the group data item SAVE-MESSAGE-STUFF. It
is a level-5 numeric computation item. 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-third byte of the record SAVE-
MESSAGE-STUFF.
The reference line indicates that the identifier is referenced in
the file COBEX85 at line 141.
7-9