|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
ASBITSTREAM and MRM |
« View previous topic :: View next topic » |
Author |
Message
|
jonny |
Posted: Thu Apr 07, 2005 3:37 am Post subject: ASBITSTREAM and MRM |
|
|
Acolyte
Joined: 03 Jul 2003 Posts: 57
|
Hi,
I am using the following code in a database node, to convert a MRM-XML message to BLOB using ASBITSTREAM function and then cast it into CHAR, before I insert it into a VARCHAR field in the database.
Code: |
DECLARE MsgBlob BLOB;
DECLARE MsgChar CHAR;
SET MsgBlob = ASBITSTREAM(Root.MRM.Message.Customer,
InputRoot.MQMD.Encoding,
InputRoot.MQMD.CodedCharSetId,
'<message set id>','<message type>','<XML1>',
FolderBitStream );
SET myMsgChar = CAST( myMsgBlob AS CHAR CCSID Root.MQMD.CodedCharSetId ENCODING Root.MQMD.Encoding |
The above code will cause a run time error "Invalid option 'FolderBitStream'" .
Is FolderBitStream supported for the MRM domain??
If I use RootBitStream option, it will convert the whole message. i.e. Root.MRM, but I am only interested in Root.MRM.Message.Customer subtree.
Any idea how to achieve this? I have tried it for the XML domain and it works fine.
Thanks |
|
Back to top |
|
 |
jonny |
Posted: Fri Apr 08, 2005 6:30 am Post subject: |
|
|
Acolyte
Joined: 03 Jul 2003 Posts: 57
|
Come on guys, anyone out there who can tell me how to solve this probelm? any genius out there??? |
|
Back to top |
|
 |
JT |
Posted: Fri Apr 08, 2005 7:25 am Post subject: |
|
|
Padawan
Joined: 27 Mar 2003 Posts: 1564 Location: Hartford, CT.
|
Quote: |
Is FolderBitStream supported for the MRM domain |
Apparently not:
Quote: |
BIP5379
Severity
20 : Error
Message
Invalid option 'FolderBitStream'
Explanation
An ESQL operation included the use of 'FolderBitStream'. The MRM Domain does not support this option.
Response
Check your ESQL, and ensure that you do not use the option 'FolderBitStream' when working with messages in the MRM Domain.
|
|
|
Back to top |
|
 |
aq |
Posted: Sun Apr 10, 2005 8:57 pm Post subject: |
|
|
Apprentice
Joined: 20 Dec 2001 Posts: 47
|
Probably not most elegant solution, but how about if you insert the subtree you want in Environment and ASBITSTREAM (FolderBitStream) it from there to BLOB variable ? |
|
Back to top |
|
 |
kimbert |
Posted: Mon Apr 11, 2005 12:48 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
FolderBitstream is not yet supported by the MRM. You can work around this restriction by constructing a message definition based on the Customer element - then you can use RootBitstream instead. |
|
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
|
|
|
|