Usage notes

  1. When an application issues the MQDISC call, or ends either normally or abnormally, any objects that were opened by the application and are still open are closed automatically with the MQCO_NONE option.
  2. The following points apply if the object being closed is a queue:
  3. The following points apply if the object being closed is a dynamic queue (either permanent or temporary):
  4. The following points apply if the object being closed is a distribution list:
  5. On i5/OS, if the application was connected implicitly when the first MQOPEN call was issued, an implicit MQDISC occurs when the last MQCLOSE is issued.

    Only applications running in compatibility mode can be connected implicitly; other applications must issue the MQCONN or MQCONNX call to connect to the queue manager explicitly.