|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQRFH2 Header |
« View previous topic :: View next topic » |
Author |
Message
|
dsmq |
Posted: Thu Aug 22, 2002 7:11 am Post subject: MQRFH2 Header |
|
|
Acolyte
Joined: 20 Jun 2002 Posts: 59
|
Hi
How to remove the MQRFH2 Header using ESQL Code.
Thanks
dsmq |
|
Back to top |
|
 |
kirani |
Posted: Thu Aug 22, 2002 7:39 am Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Have you tried this?
SET OutputRoot.MQRFH2 = NULL;
Don't forget to change your MQMD.Format after removing RFH2 header.
SET OutputRoot.MQMD.Format = MQFMT_STRING; _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
dsmq |
Posted: Thu Aug 22, 2002 8:53 am Post subject: MQRFH2 Header |
|
|
Acolyte
Joined: 20 Jun 2002 Posts: 59
|
Thank You it worked.[/img] |
|
Back to top |
|
 |
Mateo |
Posted: Thu Aug 22, 2002 10:54 pm Post subject: |
|
|
Novice
Joined: 21 Aug 2002 Posts: 24
|
Hi,
I have related problem with MQRFH2.
I need to handle a parse error in MQRFH2 ( when for example one of rfh2 folders , which are in XML format, is not well fromed ).
As first step to do this I try to remove such invalid rfh2 from a message.
I have message flow:
IN1(out)->Compute1(out)->OUT1
Compute1(failure)->ERR1
In Compute1 the following code which is not refferencing to MQRFH2:
Code: |
SET OutputRoot.MQMD = InputRoot.MQMD;
SET OutputRoot.MQMD.Format = MQFMT_STRING;
SET OutputRoot.XML = InputRoot.XML;
|
When I put a message with invalid rfh2 I get "An error occurred in parser 'MQRFH2' whilst parsing the field named 'NameValueData' ... "
Can You provide me any hint ? What should I do ?
Generaly I want to replace invalid MQRFH2 with new one ( I already have an ESQL code which adds MQRFH2 to a message )
Mateo |
|
Back to top |
|
 |
JLRowe |
Posted: Fri Aug 23, 2002 12:12 am Post subject: |
|
|
 Yatiri
Joined: 25 May 2002 Posts: 664 Location: South East London
|
Mateo,
I don't think it will be possible to remove the invalid MQRFH2 header since WMQI will parse it within the input node.
You could try picking up the message on the failure terminal of the input node, but since WMQI will not have parsed the RFH2, determined the message type and parsed the message - you wil probably end up with a BLOB. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|