Using COBOL listings

When you are debugging, you can use one or more of the listings shown in Table 1. The following sections give an overview of each of these listings and the compiler option you use to obtain each listing.

Table 1. Compiler-generated COBOL listings and their contents
Name Contents Compiler Option
Sorted Cross-Reference Listings Provides sorted cross-reference listings of DATA DIVISION, PROCEDURE DIVISION, and program names. The listings provide the location of all references to this information. XREF
Data Map listing Provides information about the locations of all DATA DIVISION items and all implicitly declared variables. This option also supplies a nested program map, which indicates where the programs are defined and provides program attribute information. MAP
Verb Cross-Reference listing Produces an alphabetic listing of all the verbs in your program and indicates where each is referenced. VBREF
Procedure Division listings Tells the COBOL compiler to generate a listing of the PROCEDURE DIVISION along with the assembler coding produced by the compiler. The list output includes the assembler source code, a map of the task global table (TGT), information about the location and size of WORKING-STORAGE and control blocks, and information about the location of literals and code for dynamic storage usage. LIST
Procedure Division listings Instead of the full PROCEDURE DIVISION listing with assembler expansion information, you can use the OFFSET compiler option to get a condensed listing that provides information about the program verb usage, global tables, WORKING-STORAGE, and literals. The OFFSET option takes precedence over the LIST option. That is, OFFSET and LIST are mutually exclusive; if you specify both, only OFFSET takes effect. OFFSET