|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
copying Msgid to correl id field in MQMD |
« View previous topic :: View next topic » |
Author |
Message
|
tonythomasantony |
Posted: Thu Dec 06, 2007 1:48 am Post subject: copying Msgid to correl id field in MQMD |
|
|
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 |
|
 |
Vitor |
Posted: Thu Dec 06, 2007 2:41 am Post subject: |
|
|
 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 |
|
 |
Bill.Matthews |
Posted: Thu Dec 06, 2007 5:04 am Post subject: Re: copying Msgid to correl id field in MQMD |
|
|
 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 |
|
 |
tonythomasantony |
Posted: Fri Dec 07, 2007 12:49 am Post subject: |
|
|
Apprentice
Joined: 12 Aug 2006 Posts: 47
|
hi all,
it worked...thanks for the suggestions
reg,
Tony |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|