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 » XML Select in a While

Post new topic  Reply to topic
 XML Select in a While « View previous topic :: View next topic » 
Author Message
RAJESHRAMAKRISHNAN
PostPosted: Mon Oct 24, 2005 12:53 am    Post subject: XML Select in a While Reply with quote

Voyager

Joined: 01 May 2004
Posts: 96

Hi All,

I have the following code:

DECLARE ref REFERENCE TO InputRoot.XML.ROOT.Detail[1];
CREATE FIELD OutputRoot.XML.A.Dtl;
DECLARE outRef REFERENCE TO OutputRoot.XML.A;
DECLARE I INT 1;
WHILE (LASTMOVE(ref)) DO
SET outRef.Dtl[] =
(SELECT AI.DespatchedItem.ItemIdentifier AS "item",
AI.DetailQty.Quantity AS "qty"
FROM ref.Advice.Detail[] AS AI);
MOVE ref NEXTSIBLING;
SET I = I + 1;
END WHILE;

In the above code outRef.Dtl is getting over written. The expected result is that new Dtl tag should be created under OutputRoot.XML.A for each WHILE. I have verified there is nothing wrong with the Select statement. Can any one please help me to create new Dtl tag for Each WHILE
Back to top
View user's profile Send private message
elvis_gn
PostPosted: Mon Oct 24, 2005 1:19 am    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

U are setting the same Dtl....ofcourse it will over write...

Search for CREATE FIELD and NEXTSIBLING in this forum..........
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » XML Select in a While
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.