|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
SELECT ALL in ESQL |
« View previous topic :: View next topic » |
Author |
Message
|
sbatta-mqnet |
Posted: Wed Jan 28, 2004 7:07 pm Post subject: SELECT ALL in ESQL |
|
|
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 |
|
 |
mgk |
Posted: Thu Jan 29, 2004 10:08 am Post subject: |
|
|
 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 |
|
 |
sbatta-mqnet |
Posted: Thu Jan 29, 2004 10:28 am Post subject: |
|
|
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 |
|
 |
mgk |
Posted: Thu Jan 29, 2004 12:22 pm Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
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
|
|
|
|