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 » General IBM MQ Support » How to extract the original header from a report msg?

Post new topic  Reply to topic
 How to extract the original header from a report msg? « View previous topic :: View next topic » 
Author Message
issac
PostPosted: Wed Apr 18, 2012 6:17 pm    Post subject: How to extract the original header from a report msg? Reply with quote

Disciple

Joined: 02 Oct 2008
Posts: 158
Location: Shanghai

Hello,

I've set the Report option to MQRO_EXPIRATION_WITH_FULL_DATA, and the report is correctly sent to my reply-to-queue. But I don't find the original message header in the data of the report message. All I find is the data part of the original message.

In infocenter for WMQ V7.0.1, it says the header is included for _WITH_DATA

Quote:
MQRO_EXPIRATION_WITH_DATA
This is the same as MQRO_EXPIRATION, except that the first 100 bytes of the application message data from the original message are included in the report message. If the original message contains one or more MQ header structures, they are included in the report message, in addition to the 100 bytes of application data.


and it said this for _WITH_FULL_DATA
Quote:
MQRO_EXPIRATION_WITH_FULL_DATA
This is the same as MQRO_EXPIRATION, except that all the application message data from the original message is included in the report message.


It didn't mention the header.

I've not tested yet if _WITH_DATA does have the header, but this is the report message I get for _WITH_FULL_DATA:
Code:
C:\Users\issac>q -m MQREPORT -i UNIT.EXPIRY.REPORT -dd3x
MQSeries Q Program by Paul Clarke [ V5.0.0 Build:Jul 15 2008 ]
Connecting ...connected to 'MQREPORT'.
============================================================================
Message Descriptor (MQMD)
StrucId      :'MD  '
Version      :1
Report       :00000000
Message Type :4 (Report)
Expiry       :-1
Feedback     :258 (Message Expired)
MQEncoding   :0x'222'
CCSID        :1208
Format       :'MQSTR   '
Priority     :0
Persistence  :0 (Not Persistent)
Message Id   :A M Q   M Q V A S               . . . O   . W .
              414D51204D5156415320202020202020EB138E4F20015702
              'AMQ MQVAS       ...O .W.'
Correl. Id   :A M Q   M Q V A S               . . . O   . Q .
              414D51204D5156415320202020202020EB138E4F20015102
              'AMQ MQVAS       ...O .Q.'
Backout Cnt. :0
ReplyToQ     :'                                                '
ReplyToQMgr  :'MQVAS                                           '
UserId       :'issac       '
AccountingTkn:. . . . . . . a . . . O ) . . . < + . . . . . . . . . . . . . .
              160105150000006182DA974F2907BA183C2BAEF103000000000000000000000B
ApplIndentity:'                                '
PutApplType  :7 (Queue Manager)
PutApplName  :'MQVAS                       '
Put Date     :'20120418'
Put Time     :'08151739'
ApplOriginDat:'    '
adsfasdfasdf
No more messages.


"adsfasdfasdf" is what I typed in for the message data body. I don't find a header here.

So is the header actually included somewhere in the report message from _WITH_FULL_DATA? If so how could I get it? If not is it possible to acquire a report with both full data and the original header?

Thank you in advance.[/quote]
_________________
Bazinga!
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Apr 19, 2012 7:54 pm    Post subject: Reply with quote

Grand High Poobah

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

IIRC for the identification you need to look at msgid and correlid and at the corresponding policy you set on the request message.
Say the request msg had copy msg to correlid, then the correlid of the report msg would be the msg id of the request msg...

Have fun
_________________
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 » General IBM MQ Support » How to extract the original header from a report msg?
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.