Truncating a bag using the mqTruncateBag call

The mqTruncateBag call reduces the number of user items in a user bag by deleting the items from the end of the bag, starting with the most recently added item. For example, it can be used when using the same header information to generate more than one message.
Figure 1. Truncating a bag

For a full description of the mqTruncateBag call, see mqTruncateBag.

Parent topic: Types of data item available in the MQAI