MaxQDepth (10-digit signed integer)

Maximum queue depth.

Local Model Alias Remote Cluster
Y Y      

This is the defined upper limit for the number of physical messages that can exist on the queue at any one time. An attempt to put a message on a queue that already contains MaxQDepth messages fails with reason code RC2053.

Unit-of-work processing and the segmentation of messages can both cause the actual number of physical messages on the queue to exceed MaxQDepth. However, this does not affect the retrievability of the messages - all messages on the queue can be retrieved using the MQGET call in the normal way.

The value of this attribute is zero or greater. The upper limit is determined by the environment.

Note:
It is possible for the storage space available to the queue to be exhausted even if there are fewer than MaxQDepth messages on the queue.

To determine the value of this attribute, use the IAMDEP selector with the MQINQ call.