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 » MQMD, MQRFH2, Empty Msg to BLOB

Post new topic  Reply to topic Goto page Previous  1, 2
 MQMD, MQRFH2, Empty Msg to BLOB « View previous topic :: View next topic » 
Author Message
shra_k
PostPosted: Fri Apr 15, 2005 5:04 am    Post subject: Reply with quote

Apprentice

Joined: 30 Dec 2002
Posts: 37

thanks 'mqmatt' for pasting the link's contents ...all those PRBs will be converted into technotes for customers
Back to top
View user's profile Send private message
datspats
PostPosted: Sun Aug 19, 2007 10:35 pm    Post subject: Reply with quote

Voyager

Joined: 12 Apr 2007
Posts: 80
Location: Mumbai

further to mqmatt Post,
I need one suggestion, I am trying to have two paths one each for the empty message and non empty message using filter node check,
In case non-empty message i will use RCD to BLOB.
For the non empty is the follwing code ok in compute node to get the empty message in BLOB domain? (along with MQRFH2 Header).

SET OutputRoot.Properties = InputRoot.Properties;
SET OutputRoot.Properties.MessageSet = '';
SET OutputRoot.Properties.MessageType = '';
SET OutputRoot.Properties.MessageFormat = '';
SET OutputRoot.MQMD = InputRoot.MQMD;
SET OutputRoot.MQRFH2 = InputRoot.MQRFH2;

DECLARE parseOptions INTEGER BITOR(FolderBitStream, ValidateContent, ValidateValue, ValidateLocalError);

DECLARE mraMsg BLOB;
SET mraMsg = CAST('' AS BLOB CCSID InputRoot.MQMD.CodedCharSetId ENCODING InputRoot.MQMD.Encoding);
DECLARE creationPtr REFERENCE TO OutputRoot;
CREATE LASTCHILD OF creationPtr DOMAIN('BLOB') PARSE(mraMsg, InputRoot.MQMD.Encoding, InputRoot.MQMD.CodedCharSetId);
RETURN TRUE;

Please suugest alternate way to keep MQRFH2 header intact in case of null Message body!!

Regards
Back to top
View user's profile Send private message Yahoo Messenger
fjb_saper
PostPosted: Mon Aug 20, 2007 1:41 am    Post subject: Reply with quote

Grand High Poobah

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

How about just a few more lines
create lastchild of OutputRoot domain 'BLOB' name 'BLOB';
create lastchild of OutputRoot.BLOB name 'BLOB';
SET OutputRoot.BLOB.BLOB VALUE = NULL;

No costly casting or parsing...
Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
datspats
PostPosted: Mon Aug 20, 2007 3:31 am    Post subject: Reply with quote

Voyager

Joined: 12 Apr 2007
Posts: 80
Location: Mumbai

Quote:
SET OutputRoot.BLOB.BLOB VALUE = NULL;

I think this statement causes to delete the message body node which we don't want. We want to keep this to preserve the MQRFH2 header for the future reference. else the MQRFH2 might be referenced as a body. Am I right fjb_saper?

Regards
Back to top
View user's profile Send private message Yahoo Messenger
fjb_saper
PostPosted: Mon Aug 20, 2007 4:34 am    Post subject: Reply with quote

Grand High Poobah

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

datspats wrote:
Quote:
SET OutputRoot.BLOB.BLOB VALUE = NULL;

I think this statement causes to delete the message body node which we don't want. We want to keep this to preserve the MQRFH2 header for the future reference. else the MQRFH2 might be referenced as a body. Am I right fjb_saper?

Regards
If you forget the VALUE key word it will remove the node. That is why it is essential no to omit the word VALUE when assigning a null value.
_________________
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 Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » MQMD, MQRFH2, Empty Msg to BLOB
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.