book
Article ID: KB0091970
calendar_today
Updated On:
Description
Resolution:
Description:-
=========
GroupId is a byte string that is used to identify the particular message group or logical message to which the physical message belongs. GroupId is also used if segmentation is allowed for the message. In all of these cases, GroupId has a non-null value.
Environment:
==========
ALL
Resolution:
========
To make the GroupID work, we need set the msgFlags field of the message MQMD. One or more of the following flags can be set in the MsgFlags field:0,1,2,4,6,8,16.
The followings are their meanings:-
0: MQMF_SEGMENTATION_INHIBITED
No message flags .Prevents the message being broken into segments by the queue manager (default message attributes).
1: MQMF_SEGMENTATION_ALLOWED
Allows the message to be broken into segments by the queue manager.
2: MQMF_SEGMENT
Message is a segment of a logical message.
4: MQMF_LAST_SEGMENT
Message is the last segment of a logical message.
8: MQMF_MSG_IN_GROUP
Message is a member of a group.
16:MQMF_LAST_MSG_IN_GROUP
Message is the last logical message in a group.
If none of these flags is set, GroupId has the special null value MQGI_NONE (i.e. no value). For more details, please see WebSphere MQ documentation.
In order to set groupId a valid value to the msgFlags (like 1,2,4,8,16) field in the same message.
Issue/Introduction
Why does the MQMD field groupId not getting propagated to MQ series?