ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Assigning part of an XML message to an Env variable

Post new topic  Reply to topic
 Assigning part of an XML message to an Env variable « View previous topic :: View next topic » 
Author Message
Testo
PostPosted: Mon Sep 20, 2004 1:05 am    Post subject: Assigning part of an XML message to an Env variable Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger
mgk
PostPosted: Mon Sep 20, 2004 1:12 am    Post subject: Reply with quote

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
View user's profile Send private message
Testo
PostPosted: Mon Sep 20, 2004 1:18 am    Post subject: WOW Reply with quote

Centurion

Joined: 26 Feb 2003
Posts: 120
Location: Italy - Milan

Thanks MGK,

refining the search I got this thread http://www.mqseries.net/phpBB2/viewtopic.php?t=8958&highlight=asbitstream+xml+char with some valuable suggestions from Craig.

Cheers,
Andrea
Back to top
View user's profile Send private message Send e-mail MSN Messenger
kirani
PostPosted: Mon Sep 20, 2004 4:23 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Assigning part of an XML message to an Env variable
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.