Messages sent to the broker

This section shows the values set for fields in the MQMD for messages sent to the broker.

Report
See MsgType (below), and Error handling by the broker.
MsgType
Can be set to MQMT_REQUEST for a command message if a response is always required. The MQRO_PAN and MQRO_NAN flags in the Report field are not significant in this case.

Can be set to MQMT_DATAGRAM, in which case responses depend on the setting of the MQRO_PAN and MQRO_NAN flags in the Report field:

Format
Set to MQFMT_RF_HEADER.
MsgId
Normally set to MQMI_NONE, so that the queue manager generates a unique value.
CorrelId
Specifies the CorrelId that can optionally be included as part of the subscriber's identity. When used with the MQRO_PASS_CORREL_ID option in the Report field, it is also in all response messages sent by the broker to the sender.
ReplyToQ
This is the queue to which responses, if any, are to be sent. This can be the sender's publisher or subscriber queue that has the advantage that the QName parameter can be omitted from the message text. If, however, responses are to be sent to a different queue, the QName parameter is needed.
ReplyToQMgr
Queue manager for responses.

Note that a putting application can leave this field blank (the default value), in which case the local queue manager puts its own name in this field.

Expiry
Expiry of the subscription or publication.