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 » Looping through records...???

Post new topic  Reply to topic
 Looping through records...??? « View previous topic :: View next topic » 
Author Message
Maverik
PostPosted: Wed Jun 22, 2005 10:28 pm    Post subject: Looping through records...??? Reply with quote

Apprentice

Joined: 14 Jun 2005
Posts: 27

Hi

Help me out with this...

Assume i have three fields A,B and C. This lies under a root
<Message>
<ABC>
<A> <A>
<B> <B>
<C> <C>
</ABC>
<ABC
<A> <A>
<B> <B>
<C> <C>
</ABC>
and so on......ending with Message..

I can have multiple occurances of <ABC>

I have to do a SELECT twice from a reference ( say REF_1) I have made to this XML.

My first SELECT is working fine.....when i use it the second time it is referencing only the last occurance of <ABC>....i.e REF_1 is pointing to the last occurance of <ABC>

1. First problem is : How can i set the reference back to the first.....???

NOTE: I do not want to use a WHILE LASTMOVE....I am able to make it work with a WHILE, as i set a new reference variable (say REF_2) with the first row in the array....... as DECLARE REF_2 REFERENCE TO REF_1[1];

How do i set REF_1 REFERENCE TO REF_1[1]; This is not working........

2. Another problem is : How can I make my SELECT stop the moment i find the first occurance.....i.e is there any SELECT DISTINCT in ESQL ????
Back to top
View user's profile Send private message
martinrydman
PostPosted: Thu Jun 23, 2005 4:00 am    Post subject: Reply with quote

Centurion

Joined: 30 Jan 2004
Posts: 139
Location: Gothenburg, Sweden

Hi,

no SELECT DISTINCT as far as I know, put check doc to be certain.

use MOVE ref TO targetref to move yourref variable

/Martin
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Jun 23, 2005 4:05 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

I think THE and ITEM count almost as select distinct.
_________________
I am *not* the model of the modern major general.
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 » Looping through records...???
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.