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.
For a full description of the mqTruncateBag call, see mqTruncateBag.