Author |
Message
|
Lo |
Posted: Mon Feb 14, 2005 5:56 am Post subject: How to Stream an XML or MRM tree |
|
|
Novice
Joined: 14 Feb 2005 Posts: 21
|
Has anyone tried write to obtain an XML representation of the incoming message from an MRM tree and written this to a varchar field in a DB2 table on an AIX machine.
We are trying ASBITSTREAM on Root.MRM to get the request message but failing when it actully runs.
We are trying CAST AS BLOB to get the bitstream but it gives and empty string.
Both options have been specified with the CCSID 1208 parameter.
Any ideas?
Cheers |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Feb 14, 2005 6:38 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
How do you know ASBITSTREAM is failing?
When you say
Quote: |
Both options have been specified with the CCSID 1208 parameter. |
do you mean you are trying to CONVERT the incoming data into CCSID 1208?
ASBITSTREAM doesn't do data conversion in that manner. If the incoming data is not in CCSID 1208... you can specify the CONVERT option on the MQInput node (if your qmgr is using 1208 as it's CCSID) or you can use ASBITSTREAM with the Input CCSID, and then use CAST as BLOB with CCSID to convert the bitstream. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Lo |
Posted: Thu Feb 17, 2005 3:53 am Post subject: |
|
|
Novice
Joined: 14 Feb 2005 Posts: 21
|
Data is coming to us as 1208, the usage of it in the code was only to show the options i tried.
In debug mode, after the call to ASBITSTREAM, there is nothing in the temporary BLOB variable.
I think, i tried you suggestion, i'll confirm later. |
|
Back to top |
|
 |
Lo |
Posted: Thu Feb 24, 2005 5:56 am Post subject: |
|
|
Novice
Joined: 14 Feb 2005 Posts: 21
|
I was trying to use this in a Database node which i was not able to do. Once converted to Compute, it wasnt a problem. Still had to convert to BITSTREAM. I dont know ASBITSTREAM as well.
Are there simple examples (of ASBITSTREAM) of what it does apart from what is in the IBM help.? |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Feb 24, 2005 6:58 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
DO NOT USE BITSTREAM.
I can not stress this enough. It does not do what you think it does, and it doesn't work in situations when you want it to.
Read the documentation on ASBITSTREAM. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
JT |
Posted: Thu Feb 24, 2005 7:04 am Post subject: |
|
|
Padawan
Joined: 27 Mar 2003 Posts: 1564 Location: Hartford, CT.
|
Quote: |
Are there simple examples (of ASBITSTREAM) of what it does apart from what is in the IBM help.? |
There are plenty of examples right here on this site. Search for 'ASBITSTREAM'. |
|
Back to top |
|
 |
|