ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » Setting MsgId

Post new topic  Reply to topic
 Setting MsgId « View previous topic :: View next topic » 
Author Message
Glass
PostPosted: Fri Jul 21, 2006 7:32 am    Post subject: Setting MsgId Reply with quote

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!

Thanks
Back to top
View user's profile Send private message
wschutz
PostPosted: Fri Jul 21, 2006 7:40 am    Post subject: Reply with quote

Jedi Knight

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
Back to top
View user's profile Send private message Send e-mail AIM Address
Glass
PostPosted: Fri Jul 21, 2006 7:50 am    Post subject: Reply with quote

Acolyte

Joined: 02 Mar 2006
Posts: 56

The reason in DLQ is 65536 which does not have a corresponding Reason Code. I am using v2.1.

Does the syntax look right to assign my own value to the MsgId?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Jul 21, 2006 10:13 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

The syntax may look right but the length of the blob is probably not right?
You need 24 bytes.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
wschutz
PostPosted: Fri Jul 21, 2006 10:17 am    Post subject: Reply with quote

Jedi Knight

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
Back to top
View user's profile Send private message Send e-mail AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Setting MsgId
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.