Putting messages to a distribution list
To put messages to a distribution list, we can use MQPUT or MQPUT1. As input, supply:
- A connection handle (see Putting messages on a queue for a description).
- An object handle. If a distribution list is opened using MQOPEN, the Hobj allows you only to put to the list.
- A message descriptor structure (MQMD). See the Application Programming Reference for a description of this structure.
- Control information in the form of a put-message option structure (MQPMO). See Specifying options using the MQPMO structure for information about filling in the fields of the MQPMO structure.
- Control information in the form of Put Message Records (MQPMR).
- The length of the data contained within the message (MQLONG).
- The message data itself.
The output is:
- A completion code
- A reason code
- Response Records (optional)
Parent topic:
Distribution lists
fg12500_