Posted: Thu Feb 08, 2007 9:10 am Post subject: MQMD Report field
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;
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.
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