MDRM (48-byte character string)
Name of reply queue manager.
This is the name of the queue manager to which the reply message or report message should be sent. MDRQ is the local name of a queue that is defined on this queue manager.
If the MDRM field is blank, the local queue manager looks up the MDRQ name in its queue definitions. If a local definition of a remote queue exists with this name, the MDRM value in the transmitted message is replaced by the value of the RemoteQMgrName attribute from the definition of the remote queue, and this value will be returned in the message descriptor when the receiving application issues an MQGET call for the message. If a local definition of a remote queue does not exist, the MDRM that is transmitted with the message is the name of the local queue manager.
If the name is specified, it may contain trailing blanks; the first null character and characters following it are treated as blanks. Otherwise, however, no check is made that the name satisfies the naming rules for queue managers, or that this name is known to the sending queue manager; this is also true for the name transmitted, if the MDRM is replaced in the transmitted message. For more information about names, see the WebSphere MQ Application Programming Guide.
If a reply-to queue is not required, it is recommended (although this is not checked) that the MDRM field should be set to blanks; the field should not be left uninitialized.
For the MQGET call, the queue manager always returns the name padded with blanks to the length of the field.
This is an output field for the MQGET call, and an input field for the MQPUT and MQPUT1 calls. The length of this field is given by LNQMN. The initial value of this field is 48 blank characters.