I am outputting messages but nheed tp change the group id and must make the messages allow segmentation. I must also determine if the message is the first / middle / last in the group and change the output accordingly.I have found the following code
DECLARE group_id CHARACTER;
SET group_id = THE(SELECT ITEM T.VENDOR_ID
FROM Database.GROUP_ID AS T) ;
SET group_id = '00000000000000000000000000000'||group_id ;
UPDATE Database.GROUP_ID AS T
SET "GROUP_ID.VENDOR_ID" = T.VENDOR_ID + 4;
Set OutputRoot.MQMD.GroupId = CAST(group_id AS BLOB) ;
Set OutputRoot.MQMD.MsgFlags = 1;
will change my group id and msgs flags when browsing the queue through the debugger but on the output q, the group id stays the smes and i cant find any options for the flags to be set. I have also found the following options in documentation MQMF_MSG_IN_GROUP and other similar options that must be set within MQMD.MsgFlags, but I do not know where to set these. Has anyone any experience of this sort? Any comments / help appreciated. Many Thanks Kiara
DECLARE group_id CHARACTER;
SET group_id = THE(SELECT ITEM T.VENDOR_ID
FROM Database.GROUP_ID AS T) ;
SET group_id = '00000000000000000000000000000'||group_id ;
UPDATE Database.GROUP_ID AS T
SET "GROUP_ID.VENDOR_ID" = T.VENDOR_ID + 4;
Set OutputRoot.MQMD.GroupId = CAST(group_id AS BLOB) ;
Set OutputRoot.MQMD.MsgFlags = 1;
will change my group id and msgs flags when browsing the queue through the debugger but on the output q, the group id stays the smes and i cant find any options for the flags to be set. I have also found the following options in documentation MQMF_MSG_IN_GROUP and other similar options that must be set within MQMD.MsgFlags, but I do not know where to set these. Has anyone any experience of this sort? Any comments / help appreciated. Many Thanks Kiara