Programming Interface Information: This information is NOT intended to be used as Programming Interfaces of z/VM.

#### MESP1

Prolog

Control Block Contents
MESP1 DSECT
MESPN DSECT
MESIX DSECT
MESMS DSECT

Storage Layout

Cross Reference (Contains links to field and bit definitions)

#### MESP1 Prolog

     NAME       : HCPMESBK
     DESCRIPTION: Message Repository Contents
     COPYRIGHT -
                  THIS MODULE IS "RESTRICTED MATERIALS OF IBM"
                  5654-A17 (C) COPYRIGHT IBM CORP. - 1995, 2001
                  LICENSED MATERIALS - PROPERTY OF IBM
     DSECT      : MESP1 (first)
     FUNCTION   : The Message Repository Contents structures describe
                  the internal structure of TEXT files created by the
                  CMS GENMSG command using the CP option.
     LOCATED BY : Internal to the TEXT file created by GENMSG
     CREATED BY : CMS GENMSG command
     DELETED BY : None
     REFERENCES : None
     SERIALIZED : None

#### MESP1 Control Block Content

#### MESP1 DSECT

####

####

####

####

####

    Hex   Dec Type/Val   Lng Label (dup)    Comments
    ---- ---- --------- ---- -------------- --------
    0000    0 Structure      MESP1          Message Repository Contents
    0000    0 Character    6 MESP1ID        Repository identification
                                            constant. For a valid repository,
                                            this field in each page must be
                                            'MSGREP'.
    0006    6 Character    2 *
    0008    8 Signed       4 *
    000C   12 Signed       2 MESP1PGN       The number of data pages in the
                                            repository
    000E   14 Bitstring    1 MESP1FLG
              1... ....      MESP1DBC       X'80' DBCS characters in
                                            repository
    000F   15 Bitstring    1 *
    0010   16 Character    5 MESP1LNG       The language ID from the GENMSG
                                            cmd
    0015   21 Character    3 MESP1CMP       The component ID from the GENMSG
                                            cmd
    0018   24 Character    4 *
    001C   28 Address      4 *
    0020   32 Character    1 MESP1IDX (0)   Start of variable length data One
                                            for each page of repository
    0020   32 Character    4 MESP1F (0)     First message id on the page
    0020   32 Signed       2 MESP1FMS       Message number in binary
    0022   34 Signed       1 MESP1FVR       Version number in binary
    0023   35 Signed       1 MESP1FLN       Line number in binary
    0024   36 Character    4 MESP1L (0)     Last message id on the page
    0024   36 Signed       2 MESP1LMS       Message number in binary
    0026   38 Signed       1 MESP1LVR       Version number in binary
    0027   39 Signed       1 MESP1LLN       Line number in binary
    0028   40 Address      4 *              Address of the page, although
                                            this field in the repository is
                                            not used.
         Definition of each data page of the message repository

    MESPN DSECT

    Hex   Dec Type/Val   Lng Label (dup)    Comments
    ---- ---- --------- ---- -------------- --------
    0000    0 Structure      MESPN          Message Repository Contents
    0000    0 Character    6 MESPNID        Repository identification
                                            constant. For a valid repository,
                                            this field in each page must be
                                            'MSGREP'.
    0006    6 Character    5 MESPNLNG       The language ID from the GENMSG
                                            cmd
    000B   11 Character    3 MESPNCMP       The component ID from the GENMSG
                                            cmd
    000E   14 Character    1 MESPNSUB       Substitution char
    000F   15 Character    1 *              The number, in character form, of
                                            digits to be displayed in the
                                            message id (that is, how many '-'
                                            in the id HCPXYZ---E.
    0010   16 Signed       4 MESPNIXN       The number of index entries in
                                            page
    0014   20 Signed       4 MESPNIXF       Offset to the start of the index.
                                            Address of the start of the index
                                            entries in the page (structure
                                            MESIX) is calculated from this
                                            field plus the address of the
                                            repository page:
         ADDR(MESPN) + MESPNIXF
    0018   24 Signed       4 MESPNTXF       Offset to the start of the
                                            message. Address of the start of
                                            the message text in this page is
                                            calculated from this field plus
                                            the address of the repository
                                            page:
         ADDR(MESPN) + MESPNTXF
    001C   28 Bitstring    1 *              Flags
         Definition of each Message index entry in data pages

    MESIX DSECT

    Hex   Dec Type/Val   Lng Label (dup)    Comments
    ---- ---- --------- ---- -------------- --------
    0000    0 Structure      MESIX          Message Repository Contents
    0000    0 Character    8 MESIXMSG (0)   Message description
    0000    0 Signed       2 MESIXMNM       Message number
    0002    2 Signed       1 MESIXFMT       Message format
    0003    3 Signed       1 MESIXLNE       Message line number
    0004    4 Signed       4 MESIXOMS       Offset to message text. Address
                                            of message text is calculated
                                            from this field plus the address
                                            of the repository page:
         ADDR(MESPN) + MESIXOMS
         Definition of each message in the data pages

    MESMS DSECT

    Hex   Dec Type/Val   Lng Label (dup)    Comments
    ---- ---- --------- ---- -------------- --------
    0000    0 Structure      MESMS          Message Repository Contents
    0000    0 Character    1 MESMSACT       Action character (W, E, R, etc.)
    0001    1 Signed       1 MESMSLEN       Length of message text (MESMSTXT)
    0002    2 Character    1 MESMSTXT (0)   Start of variable length data
                                            Message text

    MESP1 Storage Layout

    *** MESP1 - Message Repository Contents
    *
    *     +-----------------------------------------+-------------+
    *   0 |                MESP1ID                  |/////////////|
    *     +---------------------------+-------------+------+------+
    *   8 |///////////////////////////|  MESP1PGN   |:P1FLG|//////|
    *     +---------------------------+------+------+------+------+
    *  10 |            MESP1LNG              |     MESP1CMP       |
    *     +---------------------------+------+--------------------+
    *  18 |///////////////////////////|///////////////////////////|
    *     +---------------------------+---------------------------+
    *
    *** MESP1 - Message Repository Contents

    *** Overlay for MESP1IDX in MESP1
    *
    *     +-------------+------+------+-------------+------+------+
    *  20 |  MESP1FMS   |:P1FVR|:P1FLN|  MESP1LMS   |:P1LVR|:P1LLN|
    *     +-------------+------+------+-------------+------+------+
    *  28 |///////////////////////////| 2C
    *     +---------------------------+
    *
    *** Overlay for MESP1IDX in MESP1

    *** MESPN - Message Repository Contents
    *
    *     +-----------------------------------------+-------------+
    *   0 |                MESPNID                  |   (006)-    |
    *     +--------------------+--------------------+------+------+
    *   8 |     -MESPNLNG      |     MESPNCMP       |:PNSUB|//////|
    *     +--------------------+------+-------------+------+------+
    *  10 |         MESPNIXN          |         MESPNIXF          |
    *     +---------------------------+------+--------------------+
    *  18 |         MESPNTXF          |//////| 1D
    *     +---------------------------+------+
    *
    *** MESPN - Message Repository Contents

    *** MESIX - Message Repository Contents
    *
    *     +-------------+------+------+---------------------------+
    *   0 |  MESIXMNM   |:IXFMT|:IXLNE|         MESIXOMS          |
    *     +-------------+------+------+---------------------------+
    *   8
    *
    *** MESIX - Message Repository Contents

    *** MESMS - Message Repository Contents
    *
    *     +------+------+
    *   0 |:MSACT|:MSLEN|
    *     +------+------+
    *
    *** MESMS - Message Repository Contents

    MESP1 Cross Reference

    Symbol         Dspl Value
    -------------- ---- -----
    MESIXFMT       0002
    MESIXLNE       0003
    MESIXMNM       0000
    MESIXMSG       0000
    MESIXOMS       0004
    MESMSACT       0000
    MESMSLEN       0001
    MESMSTXT       0002
    MESPNCMP       000B
    MESPNID        0000
    MESPNIXF       0014
    MESPNIXN       0010
    MESPNLNG       0006
    MESPNSUB       000E
    MESPNTXF       0018
    MESP1CMP       0015
    MESP1DBC       000E 80
    MESP1F         0020
    MESP1FLG       000E
    MESP1FLN       0023
    MESP1FMS       0020
    MESP1FVR       0022
    MESP1ID        0000
    MESP1IDX       0020
    MESP1L         0024
    MESP1LLN       0027
    MESP1LMS       0024
    MESP1LNG       0010
    MESP1LVR       0026
    MESP1PGN       000C

    This information is
    based on z/VM V4R3.0.
    Last updated on 1 May 2002 at 09:16:49 EDT.

    Copyright IBM Corporation, 1990, 2002