Use the MQPMO (Put Message Option) structure to pass options to the MQPUT and MQPUT1 calls.
The following sections give you help on filling in the fields of this structure. There is a description of the structure in the WebSphere MQ Application Programming Reference.
The fields of the structure include:
These fields are described below.
If you leave the Options field set to the default value (MQPMO_NONE), the message you put has default context information associated with it.
Also, the way that the call operates with syncpoints is determined by the platform. The syncpoint control default is yes in z/OS; for other platforms, it is no.
For an introduction to message context, see Message context. For information about using the MQPMO structure to control the context information in a message, see Controlling context information.
The MQPMO can also accommodate fields required for distribution lists (see Distribution lists). If you want to use this facility, Version 2 of the MQPMO structure is used. This includes the following fields:
The value that you enter can be the same as the number of Object Records provided at MQOPEN. However, if the value is less than the number of Object Records provided on the MQOPEN call, or if you provide no Put Message Records, the values of the queues that are not defined are taken from the default values provided by the message descriptor. Also, if the value is greater than the number of Object Records provided, the excess Put Message Records are ignored.
You are recommended to do one of the following:
When you have put the message to the queue, MsgId values that the queue manager has created become available in the MQPMRs; you can use these to identify which destination is associated with each report or reply.
For a full description of Put Message Records (MQPMR) and Response Records (MQRR), see the WebSphere MQ Application Programming Reference.
Use the PutMsgRecPtr field to specify a pointer to the first Put Message Record, or the PutMsgRecOffset field to specify the offset of the first Put Message Record. This is the offset from the start of the MQPMO. Depending on the PutMsgRecFields field, enter a nonnull value for either PutMsgRecOffset or PutMsgRecPtr.
Use the ResponseRecPtr field to specify a pointer to the first Response Record, or the ResponseRecOffset field to specify the offset of the first Response Record. This is the offset from the start of the MQPMO structure. Enter a nonnull value for either ResponseRecOffset or ResponseRecPtr.
Additional information for putting to a distribution list (see Distribution lists) is provided in Version 2 of the Put Message Option structure (MQPMR). This is described in the WebSphere MQ Application Programming Reference.
Notices |
Downloads |
Library |
Support |
Feedback
![]() ![]() |
putopt |