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 » MQMD Report field

Post new topic  Reply to topic
 MQMD Report field « View previous topic :: View next topic » 
Author Message
Plons
PostPosted: Thu Feb 08, 2007 9:10 am    Post subject: MQMD Report field Reply with quote

Newbie

Joined: 26 Jan 2007
Posts: 6

Hi,

I'm trying to create a subscribe-message with a compute node.

MQINPUT->COMPUTE->MQOUTPUT

However I found in the documentation that the message broker can send a reply of the succes/failure of receiving the message. So according to the doc I set "MsgType" =1 (wich I think is MQMT_REQUEST).
However I want to set "Report" to MQRO_PAN + MQRO_NAN. The doc states it is an MQLONG type. How can I find the value for MQRO_PAN + MQRO_NAN ! Is there a table where I can look this up?

part of SQL code:
SET OutputRoot.MQMD.Report= ?;
SET OutputRoot.MQMD.MsgType = 1;
SET OutputRoot.MQMD.Format = 'MQHRF ';
SET OutputRoot.MQMD.MsgId = ID;


grtz,

plons
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Feb 08, 2007 10:05 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Um.

Just use the constants.

That is,try
Code:
SET OutputRoot.MQMD.Report=MQRO_PAN + MQRO_NAN;

_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Plons
PostPosted: Thu Feb 08, 2007 11:29 pm    Post subject: Reply with quote

Newbie

Joined: 26 Jan 2007
Posts: 6

It works!

I've probably only tried it with Quotes...

Thx a lot!
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Feb 09, 2007 4:23 am    Post subject: Reply with quote

Grand High Poobah

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

What you're doing is overkill.
The doc states that if you send a subscribe message of type request containing a replyto qmgr and replyto queue this is where the report for the subscription will be sent.

To have a full report (it will include the topic you subscribed on and the subscription destination) you need to add the option to the rfh header. See rfhutil and the doc.

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » MQMD Report field
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.