|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Assigning part of an XML message to an Env variable |
« View previous topic :: View next topic » |
Author |
Message
|
Testo |
Posted: Mon Sep 20, 2004 1:05 am Post subject: Assigning part of an XML message to an Env variable |
|
|
 Centurion
Joined: 26 Feb 2003 Posts: 120 Location: Italy - Milan
|
I've searched for a similar thread in the forum but I'm not able to find it.
I have an XML message like the following:
Code: |
<msg>
<header.data1>xxx</header.data1>
<header.data2>xxx</header.data2>
<body.data1>yyy</body.data1>
<body.data2>yyy</body.data2>
</msg>
|
I would like to save the body of the message (so, from '<body.data1>' till '</body.data2>' including both attributes and values) as a char Environment variable to be able to insert it in a database.
I've tried to assign the XML InputRoot to a CHAR variable (proceding then with some POSITION and SUBSTIRNG functions) but with no success.
Could someone provide some hints?
Thanks in advance,
Andrea Tedone
IBM IT Specialist |
|
Back to top |
|
 |
mgk |
Posted: Mon Sep 20, 2004 1:12 am Post subject: |
|
|
 Padawan
Joined: 31 Jul 2003 Posts: 1642
|
Hi,
Not sure what version you are using, but take a look at the ASBITSTREAM function. You can also search for examples of its use on this forum.
Cheers, _________________ MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions. |
|
Back to top |
|
 |
Testo |
Posted: Mon Sep 20, 2004 1:18 am Post subject: WOW |
|
|
 Centurion
Joined: 26 Feb 2003 Posts: 120 Location: Italy - Milan
|
|
Back to top |
|
 |
kirani |
Posted: Mon Sep 20, 2004 4:23 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
I think ASBITSTREAM function was introduced in WMQI 2.1 CSD3 _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
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
|
|
|
|