Administration bags are created with the MQIASY_TYPE system item set to MQCFT_COMMAND.
A command bag is processed in the same way as a user bag except that the value of the MQIASY_TYPE system item is set to MQCFT_COMMAND when the bag is created.
The command bag is also created for administering objects but they are not used to send administration messages to a command server as an administration bag is. The bag options assume the following default values:
Therefore, the MQAI will not change the order of data items or create lists within a message as with administration bags.
Group bags are created with two system selectors: MQIASY_BAG_OPTIONS and MQIASY_CODED_CHAR_SET_ID.
If a group bag is nested in a bag in which MQCBO_CHECK_SELECTORS was specified, the group bag to be nested has its selectors checked at that point whether or not MQCBO_CHECK_SELECTORS was specified when the group bag was created.
User bags are created with the MQIASY_TYPE system item set to MQCFT_USER.
For user bags, one or more of the following options can be specified:
If the data items are character strings, these strings must have the same Character Set ID as well as the same selector, in order to be compacted into list form. If the list form is used, the shorter strings are padded with blanks to the length of the longest string.
This option should be specified if the message to be sent is an administration message but MQCBO_ADMIN_BAG is not specified.
This means that you can insert items into a data bag in any order; that is, the items do not need to be inserted in the way that they must appear in the PCF message, because the MQAI can reorder these items as required.
If the message is a user message, the order of the items in the receiving bag will be the same as the order of the items in the message; this may be different from the order of the items in the sending bag.
If the message is an administration message, the order of the items in the receiving bag will be determined by the message received.
This option should be specified if the message to be sent is an administration message but MQCBO_ADMIN is not specified.
The call fails if the selector is outside the valid range. Note that system selectors (selectors less than zero) are always checked, and if a system selector is specified, it must be one that is supported by the MQAI.
The following list summarizes the default option values:
The following reason codes indicating error conditions can be returned from the mqCreateBag call:
Notices |
Downloads |
Library |
Support |
Feedback
![]() ![]() |
csqzac04381 |