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 » SELECT ALL in ESQL

Post new topic  Reply to topic
 SELECT ALL in ESQL « View previous topic :: View next topic » 
Author Message
sbatta-mqnet
PostPosted: Wed Jan 28, 2004 7:07 pm    Post subject: SELECT ALL in ESQL Reply with quote

Newbie

Joined: 24 Jan 2004
Posts: 6
Location: washington

Hi,
Is it possible to select all the fields from the message without listing each field. If I just need to filter stuff thru a where. like

SET OutputRoot.MRM.MyOutMessage.RepeatingStuff[] = Select *?? from InputBody.MyInMessage.RepeatingStuff[] as RG where RG.MyField<>'0'

I have tried RG.*[] which does work giving a list cannot be assigned to a not list message. RG creates another level of tag under the RepeatingStuff RepeatingStuff.RG

I am listing individual fields right now but for long messages its a little cumbersome .
_________________
Thanks
Sanjeev Batta
Coraxis Corporation
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
mgk
PostPosted: Thu Jan 29, 2004 10:08 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

Hi, try just RG, as in :
SET OutputRoot.XML.OutTop.Stuff[] = (SELECT RG FROM InputRoot.XML.InTop.Stuff[] AS RG WHERE RG.MyField = 'test');

This seems to do what you are asking on my box (5.0 CSD2). If you still have a problem, please post your version details and an example of your input and (the wrong) output message for the ESQL you posted.

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
sbatta-mqnet
PostPosted: Thu Jan 29, 2004 10:28 am    Post subject: Reply with quote

Newbie

Joined: 24 Jan 2004
Posts: 6
Location: washington

I am using version 2.1 the approach of using RG creates another tag inside the RepeatingStuff like

<MyMessage>
<RepeatingStuff>
<RG>
</RG>
</RepeatingStuff>
<RepeatingStuff>
<RG>
</RG>
</RepeatingStuff>
</MyMessage>
_________________
Thanks
Sanjeev Batta
Coraxis Corporation
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
mgk
PostPosted: Thu Jan 29, 2004 12:22 pm    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

And which CSD are you using, and can you post a sample of your input message...
_________________
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
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

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