When a data bag is created using the IBM MQ
Administration Interface (MQAI), we can populate it with data items. These data items can be user
or system items.
The MQAI lets you add integer items, 64-bit integer items, integer filter items, character-string
items, string filter, byte string items, and byte string filter items to bags and this is shown in
Figure 1. The items are identified by a selector. Usually one selector
identifies one item only, but this is not always the case. If a data item with the specified
selector is already present in the bag, an additional instance of that selector is added to the end
of the bag.Figure 1. Adding data items
Add data items to a bag using the mqAdd* calls: