The MQMD fields in messages from the IMS bridge

Learn about the MQMD fields in messages from the IMS bridge.

The MQMD of the originating message is carried by IMS in the User Data section of the OTMA headers. If the message originates in IMS, this is built by the IMS Destination Resolution Exit. The MQMD of a message received from IMS is built as follows:

    StrucID
    "MD "

    Version
    MQMD_VERSION_1

    Report
    MQRO_NONE

    MsgType
    MQMT_REPLY

    Expiry
    If MQIIH_PASS_EXPIRATION is set in the Flags field of the MQIIH, this field contains the remaining expiry time, else it is set to MQEI_UNLIMITED

    Feedback
    MQFB_NONE

    Encoding
    MQENC.Native (the encoding of the z/OS system)

    CodedCharSetId
    MQCCSI_Q_MGR (the CodedCharSetID of the z/OS system)

    Format
    MQFMT_IMS if the MQMD.Format of the input message is MQFMT_IMS, otherwise IOPCB.MODNAME

    Priority
    MQMD.Priority of the input message

    Persistence
    Depends on commit mode: MQMD.Persistence of the input message if CM-1; persistence matches recoverability of the IMS message if CM-0

    MsgId
    MQMD.MsgId if MQRO_PASS_MSG_ID, otherwise New MsgId (the default)

    CorrelId
    MQMD.CorrelId from the input message if MQRO_PASS_CORREL_ID, otherwise MQMD.MsgId from the input message (the default)

    BackoutCount
    0

    ReplyToQ
    Blanks

    ReplyToQMgr
    Blanks (set to local qmgr name by the queue manager during the MQPUT)

    UserIdentifier
    MQMD.UserIdentifier of the input message

    AccountingToken
    MQMD.AccountingToken of the input message

    ApplIdentityData
    MQMD.ApplIdentityData of the input message

    PutApplType
    MQAT_XCF if no error, otherwise MQAT_BRIDGE

    PutApplName
    <XCFgroupName><XCFmemberName> if no error, otherwise QMGR name

    PutDate
    Date when message was put

    PutTime
    Time when message was put

    ApplOriginData
    Blanks

Parent topic: How the IMS bridge deals with messages