Rational Developer for System z
Enterprise COBOL for z/OS, Version 4.1, Programming Guide


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                             S = Spanned file
     E = EXTERNAL                      O = Has OCCURS clause                  U = Undefined format file
     F = Fixed-length file             OG= Group has own length definition    V = Variable-length file
     FB= Fixed-length blocked file     R = REDEFINES                          VB= Variable-length blocked file

 (2)      (3)  (4)                          (5)        (6)   (7)         (8)           (9)            (10)
 Source   Hierarchy and                     Base       Hex-Displacement  Asmblr Data                  Data Def
 LineID   Data Name                         Locator    Blk   Structure   Definition    Data Type      Attributes
      4  PROGRAM-ID IGYTCARA-----------------------------------------------------------------------------------*
    181   FD COMMUTER-FILE                                                             VSAM            F
    183   1  COMMUTER-RECORD                BLF=00000  000               DS 0CL80      Group
    184     2  COMMUTER-KEY                 BLF=00000  000   0 000 000   DS 16C        Display
    185     2  FILLER                       BLF=00000  010   0 000 010   DS 64C        Display
    187   FD COMMUTER-FILE-MST                                                         VSAM            F
    189   1  COMMUTER-RECORD-MST            BLF=00001  000               DS 0CL80      Group
    190     2  COMMUTER-KEY-MST             BLF=00001  000   0 000 000   DS 16C        Display
    191     2  FILLER                       BLF=00001  010   0 000 010   DS 64C        Display
    193   FD LOCATION-FILE                                                             QSAM            FB
    198   1  LOCATION-RECORD                BLF=00002  000               DS 0CL80      Group
    199     2  LOC-CODE                     BLF=00002  000   0 000 000   DS 2C         Display
    200     2  LOC-DESCRIPTION              BLF=00002  002   0 000 002   DS 20C        Display
    201     2  FILLER                       BLF=00002  016   0 000 016   DS 58C        Display
    204   FD UPDATE-TRANSACTION-FILE                                                   QSAM            FB
    209   1  UPDATE-TRANSACTION-RECORD      BLF=00003  000               DS 80C        Display
    217   FD PRINT-FILE                                                                QSAM            FB
    222   1  PRINT-RECORD                   BLF=00004  000               DS 121C       Display
    229   1  WORKING-STORAGE-FOR-IGYCARA    BLW=00000  000               DS 1C         Display
    231   77 COMP-CODE                      BLW=00000  008               DS 2C         Binary
    232   77 WS-TYPE                        BLW=00000  010               DS 3C         Display
    235   1  I-F-STATUS-AREA                BLW=00000  018               DS 0CL2       Group
    236     2  I-F-FILE-STATUS              BLW=00000  018   0 000 000   DS 2C         Display
    237     88 I-O-SUCCESSFUL
    240   1  STATUS-AREA                    BLW=00000  020               DS 0CL8       Group
    241     2  COMMUTER-FILE-STATUS         BLW=00000  020   0 000 000   DS 2C         Display
    242     88 I-O-OKAY
    243     2  COMMUTER-VSAM-STATUS         BLW=00000  022   0 000 002   DS 0CL6       Group
    244       3  VSAM-R15-RETURN-CODE       BLW=00000  022   0 000 002   DS 2C         Binary
    245   77 UNUSED-DATA-ITEM               BLW=XXXXX  022               DS 10C        Display  (11)
(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 and SD, are not changed.
(4)
Data-name that is used in the source module in source order.
(5)
Base locator used for this data item.
(6)
Hexadecimal displacement from the beginning of the base locator value.
(7)
Hexadecimal displacement from the beginning of the containing structure.
(8)
Pseudoassembler code showing how the data is defined. When a structure contains variable-length fields, the maximum length of the structure is shown.
(9)
Data type and usage.
(10)
Data definition attribute codes. The definitions are explained at the top of the DATA DIVISION map.
(11)
UNUSED-DATA-ITEM was not referenced in the PROCEDURE DIVISION. Because OPTIMIZE(FULL) was specified, UNUSED-DATA-ITEM was deleted, resulting in the base locator being set to XXXXX.

Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)