MsgId (MQBYTE24)
This is the message identifier to be used for the message sent to the queue with a name that was specified by the corresponding element in the array of MQOR structures provided on the MQOPEN or MQPUT1 call. It is processed in the same way as the MsgId field in MQMD for a put to a single queue.
If this field is not present in the MQPMR record, or there are fewer MQPMR records than destinations, the value in MQMD is used for those destinations that do not have an MQPMR record containing a MsgId field. If that value is MQMI_NONE, a new message identifier is generated for each of those destinations (that is, no two of those destinations have the same message identifier).
If MQPMO_NEW_MSG_ID is specified, new message identifiers are generated for all the destinations in the distribution list, regardless of whether they have MQPMR records. This is different from the way that MQPMO_NEW_CORREL_ID is processed (see CorrelId field).
This is an input/output field.
Parent topic: Fields for MQPMR