|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQRC 2027 error while writing message to queue |
« View previous topic :: View next topic » |
Author |
Message
|
prasadpav |
Posted: Thu Jul 14, 2005 7:54 am Post subject: MQRC 2027 error while writing message to queue |
|
|
 Centurion
Joined: 03 Oct 2004 Posts: 142
|
Hi,
I'm using the following code to blank out the ReplyToQ & ReplyToQmgr in MQMD folder.
call CopyMessageHeaders();
set OutputRoot = InputRoot;
set OutputRoot.MQMD.Format = MQFMT_STRING;
set OutputRoot.MQMD.ReplyToQ = '';
set OutputRoot.MQMD.ReplyToQMgr = '';
set OutputRoot.MQRFH2 = null;
CALL CreateResponse();
CreateResponse() procedure will create the message body.
When this code tries to put message on the queue (MQOUTPUT node), it always complains that ReplyToQ is missing (which is MQRC 2027). Can anyone help me out here, what was wrong in above??? Thanks alot.
Cheers,
Prasad |
|
Back to top |
|
 |
prasadpav |
Posted: Thu Jul 14, 2005 7:56 am Post subject: |
|
|
 Centurion
Joined: 03 Oct 2004 Posts: 142
|
Sorry, copy& paste error. Code is this:
call CopyMessageHeaders();
set OutputRoot.MQMD.Format = MQFMT_STRING;
set OutputRoot.MQMD.ReplyToQ = '';
set OutputRoot.MQMD.ReplyToQMgr = '';
set OutputRoot.MQRFH2 = null;
CALL CreateResponse();
Prasad |
|
Back to top |
|
 |
wschutz |
Posted: Thu Jul 14, 2005 8:35 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Since you are copying the mqmd from the input, it probably means that the original message was of MsgType=MQMT_REQUEST (meaning you were expecting a reply msg and then a replyToQ is needed) or a report option was set (meaning you were expecting a report msg and then a replyToQ is needed).
So code ...
Code: |
set OutputRoot.MQMD.MsgType=MQMT_DATAGRAM;
set OutputRoot.MQMD.Report=MQRO_NONE; |
_________________ -wayne |
|
Back to top |
|
 |
prasadpav |
Posted: Thu Jul 14, 2005 10:51 am Post subject: |
|
|
 Centurion
Joined: 03 Oct 2004 Posts: 142
|
Hi,
Thanks alot. It worked !!!!!!!!!
Prasad |
|
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
|
|
|
|