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


Example: XREF output - data-name cross-references

The following example shows a sorted cross-reference of data-names that is produced by the XREF compiler option. Numbers in parentheses refer to notes that follow the example.

An “M” preceding a data-name reference indicates that the 
data-name is modified by this reference.

     (1)        (2)                            (3)
  Defined   Cross-reference of data-names   References

      264   ABEND-ITEM1
      265   ABEND-ITEM2
      347   ADD-CODE . . . . . . . . . . .  1126 1192
      381   ADDRESS-ERROR. . . . . . . . .  M1156
      280   AREA-CODE. . . . . . . . . . .  1266 1291 1354 1375
      382   CITY-ERROR . . . . . . . . . .  M1159

        (4)
 Context usage is indicated by the letter preceding 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)
     U = USE FOR DEBUGGING (procedure-name)

     (5)       (6)                             (7)
  Defined   Cross-reference of procedures   References

      877   000-DO-MAIN-LOGIC
      943   050-CREATE-STL-MASTER-FILE . .  P879
      995   100-INITIALIZE-PARAGRAPH . . .  P881
     1471   1100-PRINT-I-F-HEADINGS. . . .  P926
     1511   1200-PRINT-I-F-DATA. . . . . .  P928
     1573   1210-GET-MILES-TIME. . . . . .  P1540
     1666   1220-STORE-MILES-TIME. . . . .  P1541
     1682   1230-PRINT-SUB-I-F-DATA. . . .  P1562
     1706   1240-COMPUTE-SUMMARY . . . . .  P1563
     1052   200-EDIT-UPDATE-TRANSACTION. .  P890
     1154   210-EDIT-THE-REST. . . . . . .  P1145
     1189   300-UPDATE-COMMUTER-RECORD . .  P893
     1237   310-FORMAT-COMMUTER-RECORD . .  P1194 P1209
     1258   320-PRINT-COMMUTER-RECORD. . .  P1195 P1206 P1212 P1222
     1318   330-PRINT-REPORT . . . . . . .  P1208 P1232 P1286 P1310 P1370
     1342   400-PRINT-TRANSACTION-ERRORS .  P896

Cross-reference of data-names:

(1)
Line number where the name was defined.
(2)
Data-name.
(3)
Line numbers where the name was used. If M precedes the line number, the data item was explicitly modified at the location.

Cross-reference of procedure references:

(4)
Explanations of the context usage codes for procedure references
(5)
Line number where the procedure-name is defined
(6)
Procedure-name
(7)
Line numbers where the procedure is referenced and the context usage code for the procedure

Terms of use | Feedback

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