Usage notes
- If an MQDISC call is issued when the application still has objects open, those objects are closed by the queue manager, with the close options set to CONONE.
- If the application ends with uncommitted changes in a unit of work, the disposition of those changes depends on how the application ends:
- If the application issues the MQDISC call before ending:
- For a queue manager-coordinated unit of work, the queue manager issues the MQCMIT call on behalf of the application. The unit of work is committed if possible, and backed out if not.
- For an externally-coordinated unit of work, there is no change in the status of the unit of work; however, the queue manager will indicate that the unit of work should be committed, when asked by the unit-of-work coordinator.
- If the application ends normally but without issuing the MQDISC call, the unit of work is backed out.
- If the application ends abnormally without issuing the MQDISC call, the unit of work is backed out.
- On i5/OS, applications running in compatibility mode do not have to issue this call; see the MQCONN call for more details.