+

Search Tips | Advanced Search

2042 (07FA) (RC2042): MQRC_OBJECT_IN_USE


Explanation

An MQOPEN call was issued, but the object in question has already been opened by this or another application with options that conflict with those specified in the Options parameter. This arises if the request is for shared input, but the object is already open for exclusive input; it also arises if the request is for exclusive input, but the object is already open for input (of any sort).

MCAs for receiver channels, or the intra-group queuing agent (IGQ agent), may keep the destination queues open even when messages are not being transmitted; this results in the queues appearing to be in use. Use the MQSC command DISPLAY QSTATUS to find out who is keeping the queue open.


Completion code

MQCC_FAILED


Programmer response

System design should specify whether an application is to wait and retry, or take other action.