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 » MQRC 2027 error while writing message to queue

Post new topic  Reply to topic
 MQRC 2027 error while writing message to queue « View previous topic :: View next topic » 
Author Message
prasadpav
PostPosted: Thu Jul 14, 2005 7:54 am    Post subject: MQRC 2027 error while writing message to queue Reply with quote

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
View user's profile Send private message
prasadpav
PostPosted: Thu Jul 14, 2005 7:56 am    Post subject: Reply with quote

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
View user's profile Send private message
wschutz
PostPosted: Thu Jul 14, 2005 8:35 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail AIM Address
prasadpav
PostPosted: Thu Jul 14, 2005 10:51 am    Post subject: Reply with quote

Centurion

Joined: 03 Oct 2004
Posts: 142

Hi,
Thanks alot. It worked !!!!!!!!!

Prasad
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 » MQRC 2027 error while writing message to queue
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.