Example: MAP output
The following example shows output from the MAP
option.
The numbers used in the explanation below correspond to the numbers
that annotate the output.
Data Division Map
(1)
Data Definition Attribute codes (rightmost column) have the following meanings:
D = Object of OCCURS DEPENDING G = GLOBAL LSEQ= ORGANIZATION LINE SEQUENTIAL
E = EXTERNAL O = Has OCCURS clause SEQ= ORGANIZATION SEQUENTIAL
VLO=Variably Located Origin OG= Group has own length definition INDX= ORGANIZATION INDEXED
VL= Variably Located R = REDEFINES REL= ORGANIZATION RELATIVE
(2) (3) (4) (5) (6) (7) (8)
Source Hierarchy and Data Def
LineID Data Name Length(Displacement) Data Type Attributes
4 PROGRAM-ID IGYTCARA----------------------------------------------------------------------------------*
180 FD COMMUTER-FILE File INDX
182 1 COMMUTER-RECORD 80 Group
183 2 COMMUTER-KEY 16(0000000) Display
184 2 FILLER 64(0000016) Display
186 FD COMMUTER-FILE-MST File INDX
188 1 COMMUTER-RECORD-MST 80 Group
189 2 COMMUTER-KEY-MST 16(0000000) Display
190 2 FILLER 64(0000016) Display
192 FD LOCATION-FILE File SEQ
203 FD UPDATE-TRANSACTION-FILE File SEQ
208 1 UPDATE-TRANSACTION-RECORD 80 Display
216 FD PRINT-FILE File SEQ
221 1 PRINT-RECORD 121 Display
228 1 WORKING-STORAGE-FOR-IGYCARA 1 Display
- (1)
- Explanations of the data definition attribute codes.
- (2)
- Source line number where the data item was defined.
- (3)
- Level
definition or number. The compiler generates this number
in the following way:
- First level of any hierarchy is always 01. Increase 1 for each level (any item you coded as level 02 through 49).
- Level-numbers
66, 77, and 88, and the indicators
FD
andSD
, are not changed.
- (4)
- Data-name that is used in the source module in source order.
- (5)
- Length of data item. Base locator value.
- (6)
- Hexadecimal displacement from the beginning of the containing structure.
- (7)
- Data type and usage.
- (8)
- Data definition
attribute codes. The definitions are explained
at the top of the
DATA DIVISION
map.