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 » WebSphere Message Broker (ACE) Support » copying Msgid to correl id field in MQMD

Post new topic  Reply to topic
 copying Msgid to correl id field in MQMD « View previous topic :: View next topic » 
Author Message
tonythomasantony
PostPosted: Thu Dec 06, 2007 1:48 am    Post subject: copying Msgid to correl id field in MQMD Reply with quote

Apprentice

Joined: 12 Aug 2006
Posts: 47

how can i copy the incoming message msgid to the correlation id of outgoing message? below code is not doing the required thing

CALL CopyMessageHeaders();
SET OutputRoot.MQMD.CorrelId=CAST(InputRoot.MQMD.MsgId AS BLOB);
CALL CopyEntireMessage();

regards,
Tony
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Dec 06, 2007 2:41 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Because you copy the MQMD and other headers, set the MQMD, then copy the entire message which includes the original MQMD values.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Bill.Matthews
PostPosted: Thu Dec 06, 2007 5:04 am    Post subject: Re: copying Msgid to correl id field in MQMD Reply with quote

Master

Joined: 23 Sep 2003
Posts: 232
Location: IBM (Retired)

tonythomasantony wrote:
how can i copy the incoming message msgid to the correlation id of outgoing message? below code is not doing the required thing

CALL CopyMessageHeaders();
SET OutputRoot.MQMD.CorrelId=CAST(InputRoot.MQMD.MsgId AS BLOB);
CALL CopyEntireMessage();

regards,
Tony


Try it this way: and a CAST is NOT needed, both fields are already blobs
CALL CopyEntireMessage();
SET OutputRoot.MQMD.CorrelId=InputRoot.MQMD.MsgId;
_________________
Bill Matthews
Back to top
View user's profile Send private message
tonythomasantony
PostPosted: Fri Dec 07, 2007 12:49 am    Post subject: Reply with quote

Apprentice

Joined: 12 Aug 2006
Posts: 47

hi all,
it worked...thanks for the suggestions

reg,
Tony
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » copying Msgid to correl id field in MQMD
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.