IBM Support

MQRC 2042 (object in use) IMS application MQOPEN fails

Question & Answer


Question

We are using a new IMS application in MQ that does the following and this results in MQRC 2042:

  1. mqconn to CSQ1

  2. mqopen of queue dest.ayacmqsr.send

  3. mqput a message

  4. mqclose queue dest.ayacmqsr.send

  5. mqopen or queue dest.ayacmqsr.ims.reply
    RC 2042 0x000007fa MQRC_OBJECT_IN_USE on the MQOPEN call

Step 3 causes a IMS transaction to get started. It gets the message and then tries to access DB2. This can be recreated by cold starting WebSphere MQ, which clears the MQ system ownership.

NOTE: This question originated from a technote.

Answer

Check to see if you set up a STGCLASS to use the OTMA bridge. In this case, typically the STGCLASS is used on the queue that has the RC2042. When using the OTMA bridge the ownership is always QMGR and SYSTEM. Make sure this is the case or you will get this error.

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSEPH2","label":"IBM Information Management System (IMS)"},"Platform":[{"code":"PF035","label":"z\/OS"}],"Component":"","Version":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Document Information

Modified date:
27 April 2017

UID

dwa1371574