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 » PARSE()

Post new topic  Reply to topic
 PARSE() « View previous topic :: View next topic » 
Author Message
Akshu
PostPosted: Fri Oct 25, 2019 3:21 am    Post subject: PARSE() Reply with quote

Newbie

Joined: 25 Oct 2019
Posts: 3

I'm a fresher and new to IIB.

I came across PARSE() function and I have few doubts on that.

The statement thats used in the application is:
PARSE(xPath, inEncoding, inCCSID, 'BLOB', 'XMLNSC')

When I refered IIB site, found the syntax as:
|--PARSE--(--BitStreamExpression--+------------------------------+--)--|
| .-<<-----------------------. |
| V | |
'---+-ENCODING--expression-+-+-'
+-CCSID--expression----+
+-SET--expression------+
+-TYPE--expression-----+
+-FORMAT--expression---+
'-Options--------------'
which mentions When you use the PARSE clause, specify a scalar value containing the bit stream that is to be parsed for BitStreamExpression.

But nowhere in the code, the xpath is converted to bitstream using ASBITSTREAM but it still works fine.

Could anyone please explain why this happens and how the function works ?
Back to top
View user's profile Send private message
timber
PostPosted: Fri Oct 25, 2019 3:45 am    Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1280

What is the data type of the varable 'xpath' ?
Back to top
View user's profile Send private message
Akshu
PostPosted: Fri Oct 25, 2019 7:04 am    Post subject: Reply with quote

Newbie

Joined: 25 Oct 2019
Posts: 3

Actually it's a block which contains Cdata.
I want to parse that cdata as xml and fetch the field values.
Eg: <input>
<outerblock>
<innerblock>
<![CDATA[another xml data]]>
</innerblock>
</outerblock>
</input>
Back to top
View user's profile Send private message
Akshu
PostPosted: Fri Oct 25, 2019 7:06 am    Post subject: Reply with quote

Newbie

Joined: 25 Oct 2019
Posts: 3

So I gave the XPath as input.outerblock.innerblock
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » PARSE()
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.