COBOL - Opções de compilação - MAP


Volta a página anterior

Volta ao Menu Principal


Desenvolvido por DORNELLES Carlos Alberto - Analista de Sistemas - Brasília DF. - cad_cobol@hotmail.com

Opções de compilação - MAP

Use MAP to produce a listing of the items defined in the DATA DIVISION.

MAP option syntax

Default is: NOMAP

Abbreviations are: None

The output includes the following items:

  • DATA DIVISION map
  • Global tables
  • Literal pools
  • Nested program structure map, and program attributes
  • Size of the program's WORKING-STORAGE and LOCAL-STORAGE and its location in the object code if the program is compiled with the NORENT option

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:

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.


© Copyright IBM Corp.