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 » IIB9: ESQL Where Clause on Message

Post new topic  Reply to topic
 IIB9: ESQL Where Clause on Message « View previous topic :: View next topic » 
Author Message
akil
PostPosted: Mon Nov 24, 2014 9:58 am    Post subject: IIB9: ESQL Where Clause on Message Reply with quote

Partisan

Joined: 27 May 2014
Posts: 338
Location: Mumbai

Hi

I've a message like follows

Code:

                                         (0x01000000:Folder        ):RequestObject  = (
                                             (0x03000000:PCDataField):RequestId       = 67 (INTEGER)
                                             (0x03000000:PCDataField):MobileNo        = '919820659010' (CHARACTER)
                                             (0x03000000:PCDataField):MasterShortCode = '*598*99*4' (CHARACTER)
                                             (0x03000000:PCDataField):SessionGUID     = '29952' (CHARACTER)
                                             (0x03000000:PCDataField):SessionGUID_CMO = '3726687' (CHARACTER)
                                             (0x03000000:PCDataField):RequestType     = 'USSD' (CHARACTER)
                                             (0x03000000:PCDataField):LanguageId      = 0 (INTEGER)
                                             (0x03000000:PCDataField):OperatorName    = 'TATA' (CHARACTER)
                                             (0x03000000:PCDataField):TimeStamp       = TIMESTAMP '2014-05-02 11:32:14.662625' (TIMESTAMP)
                                             (0x01000000:Folder     ):RequestParams   = (
                                               (0x01000000:Folder):Param = (
                                                 (0x03000000:PCDataField):ParamId    = 1 (INTEGER)
                                                 (0x03000000:PCDataField):ParamName  = 'EventName' (CHARACTER)
                                                 (0x03000000:PCDataField):ParamValue = 'BalanceEnquiry' (CHARACTER)
                                                 (0x03000000:PCDataField):ParamType  = 'String' (CHARACTER)
                                               )
                                               (0x01000000:Folder):Param = (
                                                 (0x03000000:PCDataField):ParamId    = 2 (INTEGER)
                                                 (0x03000000:PCDataField):ParamName  = 'NPCI - Main Menu' (CHARACTER)
                                                 (0x03000000:PCDataField):ParamValue = '1' (CHARACTER)
                                                 (0x03000000:PCDataField):ParamType  = 'String' (CHARACTER)
                                               )
                                               (0x01000000:Folder):Param = (
                                                 (0x03000000:PCDataField):ParamId    = 3 (INTEGER)
                                                 (0x03000000:PCDataField):ParamName  = 'Enter IFSC Code' (CHARACTER)
                                                 (0x03000000:PCDataField):ParamValue = 'SBIN' (CHARACTER)
                                                 (0x03000000:PCDataField):ParamType  = 'String' (CHARACTER)
                                               )
                                               (0x01000000:Folder):Param = (
                                                 (0x03000000:PCDataField):ParamId    = 4 (INTEGER)
                                                 (0x03000000:PCDataField):ParamName  = 'MainMenu' (CHARACTER)
                                                 (0x03000000:PCDataField):ParamValue = '1' (CHARACTER)
                                                 (0x03000000:PCDataField):ParamType  = 'String' (CHARACTER)
                                               )
.....


I can write an Xpath to search for the element that I want,
Code:

$Root/XMLNSC/RequestObject/RequestParams/Param[ParamId = 3]/ParamValue


I am not able to figure out who to do that same in ESQL , I tried

Code:

THE(SELECT ITEM(P.Param.ParamValue) FROM
         InputRoot.XMLNSC.RequestObject.RequestParams[] AS P
         WHERE P.Param.ParamId = 3)


But this does not work..

Is this possible to do ?
_________________
Regards
Back to top
View user's profile Send private message Visit poster's website
akil
PostPosted: Mon Nov 24, 2014 10:05 am    Post subject: Reply with quote

Partisan

Joined: 27 May 2014
Posts: 338
Location: Mumbai

Silly mistake, found the solutions..

Code:

THE(SELECT ITEM(P.ParamValue) FROM
         InputRoot.XMLNSC.RequestObject.RequestParams.Param[] AS P
         WHERE P.ParamId = 3)

_________________
Regards
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 » IIB9: ESQL Where Clause on Message
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.