Use MAP to produce a listing of the items defined in the DATA DIVISION.
MAP option syntax .-NOMAP-. >>-+-------+--------------------------------------------------->< '-MAP---'
Default is: NOMAP
Abbreviations are: None
The output includes the following items:
If you want to limit the MAP output, use *CONTROL MAP or NOMAP statements in the DATA DIVISION. Source statements that follow *CONTROL NOMAP are not included in the listing until a *CONTROL MAP statement switches the output back to normal MAP format. For example:
*CONTROL NOMAP *CBL NOMAP
01 A 01 A
02 B 02 B
*CONTROL MAP *CBL MAP
By selecting the MAP option, you can also print an embedded MAP report in the source code listing. The condensed MAP information is printed to the right of data-name definitions in the FILE SECTION, LOCAL-STORAGE SECTION, and LINKAGE SECTION of the DATA DIVISION. When both XREF data and an embedded MAP summary are on the same line, the embedded summary is printed first.
related concepts
Debugging
related tasks
Getting listings
related references
*CONTROL (*CBL) statement (Enterprise COBOL Language Reference)