|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Getting Null in body when reading from OutputRoot.MRM |
« View previous topic :: View next topic » |
Author |
Message
|
incrediblesid |
Posted: Wed Feb 20, 2013 10:25 am Post subject: Getting Null in body when reading from OutputRoot.MRM |
|
|
Newbie
Joined: 20 Feb 2013 Posts: 1
|
HI,
I am new to this forum so not sure on the exact protocol or call signs.
Working on a problem set, I am transforming a SWIFT 54X message.
I got the SWIFT message parsed successfully using RCD.
The message folder structure after parsing is generated as:
InputRoot.MRM.FIN<msg contn.>
I am updating message fields and then need to add a 270 character length header at the beginning of message.
To do this I converted my header to Bitstream and now when I am trying to convert my transformed Swift to bitstream using the following:
DECLARE parseOptions INTEGER BITOR(FolderBitStream, ValidateContent,
ValidateValue, ValidateLocalError);
SET OutputRoot.BLOB.BLOB = CAST(ASBITSTREAM(OutputRoot.MRM OPTIONS parseOptions
SET OutputRoot.Properties.MessageSet
TYPE OutputRoot.Properties.MessageType
FORMAT OutputRoot.Properties.MessageFormat) AS BLOB CCSID 1208);
The issue I am facing is in the ASBITSTREAM function, the OutputRoot.MRM is coming as NULL.
When printing the Root element in trace, I can see the message present in the MRM folder.
All the above operations - updating and adding header,is being done in a single compute node.
Please share your thought on why the MRM tree is getting NULL. |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Feb 20, 2013 10:30 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
MRM does not support FolderBitStream, to the best of my knowledge.
The only parser that supports FolderBitStream, to the best of my knowledge, is the XMLNSC parser.
The *correct* way to do this, however, is to create a new message definition that includes the extra header and the rest of the message.
Then just transform your input message into that message, rather than the one without the extra header. |
|
Back to top |
|
 |
kimbert |
Posted: Thu Feb 21, 2013 3:34 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Quote: |
MRM does not support FolderBitStream, to the best of my knowledge. |
MRM does support FolderBitstream - it is quite a widely-used feature.
Quote: |
The issue I am facing is in the ASBITSTREAM function, the OutputRoot.MRM is coming as NULL. |
So you need to diagnose the problem. The best way to diagnose TDS problems is to take a debug-level user trace.
Quote: |
Please share your thought on why the MRM tree is getting NULL. |
There are many, many reasons why this could be happening. Get a user trace, and you will be able to find out for yourself why this is happening. |
|
Back to top |
|
 |
adubya |
Posted: Thu Feb 21, 2013 3:43 am Post subject: Re: Getting Null in body when reading from OutputRoot.MRM |
|
|
Partisan
Joined: 25 Aug 2011 Posts: 377 Location: GU12, UK
|
incrediblesid wrote: |
HI,
I am new to this forum so not sure on the exact protocol or call signs.
|
Hi and welcome. A protocol we have on here is to embed any code/output into forum [ c o d e ] tags, makes things more readable.
Cheers. |
|
Back to top |
|
 |
marko.pitkanen |
Posted: Thu Feb 21, 2013 4:49 am Post subject: Re: Getting Null in body when reading from OutputRoot.MRM |
|
|
 Chevalier
Joined: 23 Jul 2008 Posts: 440 Location: Jamsa, Finland
|
incrediblesid wrote: |
SET OutputRoot.BLOB.BLOB = CAST(ASBITSTREAM(OutputRoot.MRM |
Are you sure you should serialize OutputRoot.MRM with ASBITSTREAM function?
--
Marko |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Feb 21, 2013 5:09 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
kimbert wrote: |
Quote: |
MRM does not support FolderBitStream, to the best of my knowledge. |
MRM does support FolderBitstream - it is quite a widely-used feature. |
Apparently I've not used MRM in quite a long time. |
|
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
|
|
|
|