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-63
Cross-Reference Listing
Cross-Reference Listing
The COBOL85 compiler lists a cross-reference if you explicitly request it with the 
CROSSREF directive; however, generating a cross-reference this way slows down the 
compilation and, if the program has errors, the cross-reference listing might also have 
errors. A better way to get the cross-reference listing is by using the CROSSREF utility, 
after you rid the program of errors. For information about the CROSSREF utility, see 
the CROSSREF Manual.
Load Maps
The compiler lists the load maps (also called Binder maps) if you explicitly request 
them with the LMAP directive. With options, you can select any or all of these load 
maps (to select all, specify LMAP): 
The LMAP or NOLMAP directive that is active when the compiler detects the end of a 
source program and starts creating an object program is the one that determines which 
load maps appear in the compiler listing.
Note. This topic applies only to the COBOL85 compiler. The NMCOBOL compiler does not 
produce a cross-reference listing. If you need one, use the noft utility with the XREFPROC flag 
(see the nld Manual).
Example 22-25. Cross-Reference Listing
...
 EXPLAIN-MYSELF       PARA          %000262  
PROBE[1] 86
  PROBE[1]     80 M
 FILE-NAME OF PROGRAM-FILE-NAME  05   AN  DISP WSS  SIZE=8  OFFSET=16 
PROBE[1] 58
  PROBE[1]    134
 HOME-TERMINAL        01   AN  DISP WSS  SIZE=24  OFFSET=0  
PROBE[1] 59
  PROBE[1]     76 M    104
 LEFT-BYTE OF SEPARATED-BYTES 05  AN GROUP WSS SIZE=2  OFFSET=0  
PROBE[1] 32
  PROBE[1]     35 M
...
Note. This topic applies only to the COBOL85 compiler. The LMAP and NOLMAP directives 
determine which load maps the compiler obtains from BINSERV. The NMCOBOL compiler 
does not use BINSERV.
LMAP Option Load Map
ALPHA Programs and subprograms, sorted alphabetically by program name
LOC Programs and subprograms, sorted by location (starting address)
XREF Cross-reference listing of entry-point and data-block names










