The module map is new in version 2.
Figure 1. Format for module map list entries Field Field Off Leng Description
Name Type set
IEWBMAP Module Map, Version 2
MAPH_BUFFER_ID Char 0 8 Buffer identifier "IEWBMAP"
MAPH_BUFFER_LENG Binary 8 4 Length of the buffer,
including the header
MAPH_VERSION Binary 12 1 Version identifier
*** RESERVED *** Binary 13 3 Reserved, must be zeros
MAPH_ENTRY_LENG Binary 16 4 Length of each entry
MAPH_ENTRY_COUNT Binary 20 4 Number of entries in the list
*** RESERVED *** Binary 24 8 Reserved, initialize to zeros
MAPH_ENTRY_ORIGIN 32 First map entry
1 MAP_ENTRY Map Entry
MAP_NEXT Binary 0 4 Offset of next sibling entry
MAP_TYPE Char 4 1 Type of map entry
'M' Module
'C' Class
'O' Overlay segment
'S' Section within class
'P' Part within class
'L' Label within section
'X' Text extent within section
or part
'E' End-of-module
2 MAP_FLAGS Bit 5 1 Flags
1... .... Single extent implied (S)
.1.. .... Loadable text class (C)
..1. .... Class is executable text (C)
...x xxxx Reserved
2 MAP_NAME Name 6 6 Name of mapped element
Null (M, X, E)
region & segment (O)
MAP_NAME_CHARS Binary 6 2 length of name in bytes (O)
MAP_NAME_PTR Pointer 8 4 pointer to name string
MAP_REGION Binary 8 2 Region number (O)
MAP_SEGMENT Binary 10 2 Segment number (O)
2 MAP_OFFSET Binary 12 4 Offset
class offset (O, S, P)
section offset (L, X)
zero (M, C)
Field Field Off Leng Description
Name Type set
2 MAP_QUANTITY Binary 16 4 Number of logical records/bytes
Sum of all classes (M)
Zero (L)
2 MAP_NAME_SPACE Binary 20 1 Name space of label
X'01' External Labels (L)
X'02' Pseudoregisters (P)
X'03' Parts (P)
X'04'-X'07' Reserved
*** RESERVED *** Binary 21 1 Reserved.
2 MAP_RECORD_FMT Binary 22 2 Class data format/record length
Zero (M, E)
Record length (C,O,S,L,P,X)
*** RESERVED *** Binary 24 8 Reserved.
Note: - This entry is valid for output only.
- Letters shown in parentheses refer to the map record type in which
the flag is valid.