COBOL Manual for TNS and TNS/R Programs
Creating and Compiling HP COBOL Source
Programs
HP COBOL Manual for TNS and TNS/R Programs—522555-006
22-53
Symbol Table Listing
Symbol Table Listing
The compiler lists the symbol table if you explicitly request it with the MAP directive.
The symbol table lists, in alphabetic order, each identifier in the program. For each
identifier, the listing shows:
•
The group(s) of which it is a member
•
The type of entity it identifies (its level number)
•
The address (including possible offset) with which it is associated
•
The size of the entity it identifies, if applicable
•
The category of the entity it identifies (such as numeric or alphanumeric)
•
The usage of the entity it identifies (such as COMPUTATIONAL or DISPLAY)
Most identifiers in a program identify data items. Example 22-20 and Example 22-21
show a few lines of a symbol table listing of the program in Example 14-14 on
page 14-22.
Example 22-20. Symbol Table Listing (COBOL85 Compiler)
...
CPU OF CPU-PIN 05 L+006,S 0 2 NM COMP
CPU-PIN 01 L+006,S 0 8 AN GROUP
CREATOR-ACCESSOR-ID 01 L+011 0 2 NM COMP
CREATOR-EDITED 01 L+013,S 0 1 AN GROUP
CREATOR-GROUP OF CREATOR-EDITED 05 L+013,S 6 3 NME DISPLY
CREATOR-MEMBER OF CREATOR-EDITED 05 L+013,S 18 3 NME DISPLY
ERROR-RETURN 01 L+022 0 2 NM DISPLY
EXPLAIN-MYSELF PARAGRAPH %000413
HOME-TERMINAL 01 L+020,S 0 24 AN DISPLY
HOME-TERMINAL-LEN 01 L+021 0 2 NM NATIVE
LEFT-BYTE OF CONSECUTIVE-BYTES 05 L+007,I 0 1 AN DISPLY
...