The module entry point list (MEPL)

The Db2 module entry point list (MEPL) is found in all SVC dumps that are issued by Db2. It identifies the names of the load modules and CSECTs that are loaded into the subsystem at startup and remain in storage for the life of the subsystem.

With the DISPLAY parameter of the DIAGNOSE utility you can, without forcing an SVC dump, dump either the Db2 MEPL or the DSNUTILB MEPL to SYSPRINT.

Contents of the MEPL

Header
One 32-byte entry per MEPL, containing:
  • 2-byte hexadecimal control block identifier (X'00BA')
  • 2 bytes of reserved space
  • 4-byte EBCDIC control block identifier and eye-catcher (MEPL)
  • 2-byte value for the total number of load module entries in the control block
  • 2-byte value for the total number of entries (both load module and CSECT) in the control block
  • 4-byte value for the length of the control block
  • 16 bytes of reserved space
Load Module
One 32-byte entry for each load module in the MEPL, containing:
  • 8-byte load module name
  • 4-byte load module that starts address (if the high-order bit is 1, the load module runs in 31 bit addressing mode under z/OS®)
  • 4-byte load module ending address
  • 2-byte load module storage residency indicated by one of the following items:
    • Address space identifier (ASID) if the load module is stored in local (private) storage
    • Zero (0000) if the load module is stored in global (common system area)
  • 2-byte value for the total number of CSECT entries in the load module
  • 4-byte program call (PC) linkage index (LX) value that is used to start a CSECT in this load module or zero (00000000) if PC is not used
  • 8 bytes of reserved space
CSECT
One 32-byte entry for each CSECT in a load module in the MEPL, containing:
  • 4-byte CSECT entry point address
  • 8-byte CSECT name
  • 8-byte CSECT assembly date
  • 8-byte number of last APAR applied to this CSECT
  • 1-byte program call (PC) entry table index (EX) value that is used to start this entry point or zero (00) if PC is not used
  • 1-byte initialization entry point list (IEPL) flag bits:
    • X'80': Entry point that is started by PC linkage
    • X'40': PC with space switch (dual address space) permitted
    • X'20': Entry point that is started from application process environment
    • X'10': Entry point that is started by CALL linkage
    • X'08': Primary CSECT entry point
    • X'04': Reserved (unused)
    • X'02': Reserved (unused)
    • X'01': Reserved (unused)
  • 2 bytes of reserved storage