How do I retrieve the MQRH2 header from the read function

Can anyone help my with the below.
I am trying to retrieve a specific MQRFH2 header (Application (usr) Defined Properties). I tried using 'Extract' tab from 'Header Data Bank' but I am only receiving request header values. I am expecting Application (usr) Defined Properties. Would someone help with retrieving the RFH2 header.? Thanks
Answers
-
The
Transport Header
output only provides the MQMD headers which can be extacted using aHeader Data Bank
. In contrast, the MQRFH2 header and the message content are combined into a contrived XML document to simplify correlations and extractions. The document looks something like this (values omitted):<RFH2Message> <RFH2Headers> <mcd> <Msd></Msd> <Set></Set> </mcd> <psc> <Command></Command> <Topic></Topic> <SubIdentity></SubIdentity> <RegOpt></RegOpt> </psc> <usr> <myKey></myKey> </usr> <jms> <Dst></Dst> <Rto></Rto> </jms> </RFH2Headers> <Content>actual MQ message content goes here</Content> </RFH2Message>
For correlations, you can paste a sample message (like the above) under
Options > Request Template
then configure correlations underResponder Correlation > Request Body
.
To perform extractions, you would chain anXML Data Bank
to theIncoming Request Payload
. You can similarly paste a sample message (like the above) into theLiteral
tab then switch to theTree
tab to select values to extract.0