Use the MQOR structure

 

Provide an MQOR structure for each destination. The structure contains the destination queue and queue manager names. The ObjectName and ObjectQMgrName fields in the MQOD are not used for distribution lists. There must be one or more object records. If the ObjectQMgrName is left blank, the local queue manager is used. See the Application Programming Reference for further information about these fields.

We can specify the destination queues in two ways:

Whichever technique you choose, use one of ObjectRecOffset and ObjectRecPtr; the call fails with reason code MQRC_OBJECT_RECORDS_ERROR if both are zero, or both are nonzero.

 

Parent topic:

Opening distribution lists


fg12470_