Author |
Message
|
gecs |
Posted: Fri Mar 19, 2010 1:17 pm Post subject: Issue with ASBITSTREAM function on MRM with TDS format |
|
|
 Acolyte
Joined: 14 Nov 2007 Posts: 58
|
I'm trying convert part of InputRoot into a bit stream. The domain used is MRM.
I'm using the code below:
DECLARE intOptions BITOR(EmbeddedBitStream ,ValidateNone);
DECLARE blb BLOB ASBITSTREAM(reference OPTIONS intOptions CCSID InputProperties.CodedCharSetId);
The blb variable is returning the bit stream of all message but I just want the bit stream of my subtree.
The reference variable is pointing to my subtree that I want to convert.
Finally, I have a message set with message format TDS.
I've tried by using FolderBitStream, RootBitStream but it doesn't work.
Too, I've tried by using the other parameters of ASBITSTREAM function like SET, TYPE and FORMAT. In special the FORMAT parameter.
Please. someone knows what should I do ? |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Mar 19, 2010 1:27 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Make sure you're at the *latest* fixpack of the specific version of broker that you're using, ideally 7.0.0.0. |
|
Back to top |
|
 |
gecs |
Posted: Fri Mar 19, 2010 1:45 pm Post subject: |
|
|
 Acolyte
Joined: 14 Nov 2007 Posts: 58
|
I'm using the latest broker version 7.0.0.0
I have read this ... http://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/index.jsp?topic=/com.ibm.etools.mft.doc/ar60310_.htm
Maybe it could give you an idea.
The difference is that I am working with files reading with a message set in TDS format.
I think The ASBITSTREAM want to convert my subtree in an anterior tree (the original root with all message) but my original message contains more data that was suppressed by TDS format and my logical message contains the message without the tags. Is this true or false?
Last edited by gecs on Fri Mar 19, 2010 2:10 pm; edited 1 time in total |
|
Back to top |
|
 |
newtobroker |
Posted: Fri Mar 19, 2010 2:05 pm Post subject: |
|
|
Novice
Joined: 04 Feb 2010 Posts: 23
|
Just a different thought here.. y dont u detach ur subtree into a new xml and create two bitstreams ?
and later when required re-join/bind them?? |
|
Back to top |
|
 |
gecs |
Posted: Fri Mar 19, 2010 2:16 pm Post subject: |
|
|
 Acolyte
Joined: 14 Nov 2007 Posts: 58
|
I don't need re-join again because I am using this bit stream for send as a parameter in my throw exception. And then, I catch the bit stream in other node for sending an e-mail. |
|
Back to top |
|
 |
kimbert |
Posted: Sat Mar 20, 2010 12:38 pm Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Quote: |
The blb variable is returning the bit stream of all message but I just want the bit stream of my subtree.
The reference variable is pointing to my subtree that I want to convert. |
That statement needs to be proved. Please supply Trace node output that proves that it really is pointing where you think it is pointing.
Quote: |
Too, I've tried by using the other parameters of ASBITSTREAM function like SET, TYPE and FORMAT. In special the FORMAT parameter. |
The word 'too' worries me a lot. Did you really start out *not* specifying those parameters? The ASBITSTREAM function must have failed with an error message if you did that, so that makes me wonder where your 'bitstream of all of the message' came from.
I think the most likely explanation is that your reference is pointing at the root of the message tree. Did you check LASTMOVE after declaring/moving the reference? |
|
Back to top |
|
 |
|