If the selector is less than zero (that is, a system selector), the selector must be one that is supported by the MQAI; MQRC_SELECTOR_NOT_SUPPORTED results if it is not.
The specified selector must be present in the bag; MQRC_SELECTOR_NOT_PRESENT results if it is not.
The datatype of the item must agree with the datatype implied by the call; MQRC_SELECTOR_WRONG_TYPE results if it is not.
The following special values can be specified for Selector:
The value must be zero or greater, or the special value MQIND_NONE. If the value is less than zero and not MQIND_NONE, MQRC_INDEX_ERROR results. If the item is not already present in the bag, MQRC_INDEX_NOT_PRESENT results.
The following special value can be specified:
If MQSEL_ANY_SELECTOR is specified for the Selector parameter, the ItemIndex parameter is the index relative to the set of items that contains both user items and system items, and must be zero or greater.
If MQSEL_ANY_USER_SELECTOR is specified for the Selector parameter, the ItemIndex parameter is the index relative to the set of system items, and must be zero or greater.
If MQSEL_ANY_SYSTEM_SELECTOR is specified for the Selector parameter, the ItemIndex parameter is the index relative to the set of system items, and must be zero or greater.
If an explicit selector value is specified, the ItemIndex parameter is the index relative to the set of items that have that selector value and can be MQIND_NONE, zero, or greater.
The following reason codes indicating error conditions can be returned from the mqInquireBag call:
Notices |
Downloads |
Library |
Support |
Feedback
![]() ![]() |
csqzac04406 |