6104 (17D8) (RC6104): MQRC_ATTRIBUTE_LOCKED


Explanation

An attempt has been made to change the value of an attribute of an object while that object is open, or, for an ImqQueueManager object, while that object is connected. Certain attributes cannot be changed in these circumstances. Close or disconnect the object (as appropriate) before changing the attribute value.

An object might have been connected, opened, or both unexpectedly and implicitly to perform an MQINQ call. Check the attribute cross-reference table in C++ and MQI cross-reference to determine whether any of your method invocations result in an MQINQ call.

This reason code occurs in the IBM MQ C++ environment.


Completion code

MQCC_FAILED


Programmer response

Include MQOO_INQUIRE in the ImqObject open options and set them earlier.