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 » MQRFH2 Header

Post new topic  Reply to topic
 MQRFH2 Header « View previous topic :: View next topic » 
Author Message
dsmq
PostPosted: Thu Aug 22, 2002 7:11 am    Post subject: MQRFH2 Header Reply with quote

Acolyte

Joined: 20 Jun 2002
Posts: 59

Hi

How to remove the MQRFH2 Header using ESQL Code.

Thanks
dsmq
Back to top
View user's profile Send private message
kirani
PostPosted: Thu Aug 22, 2002 7:39 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
dsmq
PostPosted: Thu Aug 22, 2002 8:53 am    Post subject: MQRFH2 Header Reply with quote

Acolyte

Joined: 20 Jun 2002
Posts: 59

Thank You it worked.[/img]
Back to top
View user's profile Send private message
Mateo
PostPosted: Thu Aug 22, 2002 10:54 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
JLRowe
PostPosted: Fri Aug 23, 2002 12:12 am    Post subject: Reply with quote

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
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 » MQRFH2 Header
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.