Posted: Fri Jul 21, 2006 7:32 am Post subject: Setting MsgId
Acolyte
Joined: 02 Mar 2006 Posts: 56
I have a question regarding setting my own MsgId. Before sending out a message to a queue, I would like to put my own Msgid and send it. I have the following code:
SET "OutputRoot"."MQMD"."MsgId" = CAST('MYOWNMSGID' AS BLOB);
This goes to the dead letter queue. I am sure I am missing something here so if anybody out there knows this, please help!
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
I don't think its winding up in the DLQ because of the MsgId... is there a dead letter header on the message? If so, it should contain the reason code explaining why its in the DLQ. _________________ -wayne
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
Others (who are being very quiet today) have suggested that perhaps you also need to specify CCSID in the CAST function... and I'd suggest a trace node or debugging session to ensure the MsgID is what you expect to to be .... _________________ -wayne
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum