|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Break the while loop in ESQL |
« View previous topic :: View next topic » |
Author |
Message
|
Harshalw |
Posted: Thu Jul 31, 2008 1:33 am Post subject: Break the while loop in ESQL |
|
|
Voyager
Joined: 23 Jul 2008 Posts: 77
|
Hi,
I am using a WHILE loop for accessing the XML repeative element in ESQL for WMB 6.1. For some conditions i just want to skip the processing and start from next element. Is there any Keyword like CONTINUE and BREAK (C,C++ ) for ESQL?
Thanks |
|
Back to top |
|
 |
elvis_gn |
Posted: Thu Jul 31, 2008 2:40 am Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
Hi Harshalw,
Look for the "LEAVE Statement" in the ESQL documentation.
Regards. |
|
Back to top |
|
 |
Harshalw |
Posted: Thu Jul 31, 2008 2:50 am Post subject: |
|
|
Voyager
Joined: 23 Jul 2008 Posts: 77
|
LEAVE is for Exit from loop.
Can i use ITERATE statement - for continue the loop from 1st statement with next iteration ? CONTINUE is also a keyword in ESQL, however it is giving me error over there. |
|
Back to top |
|
 |
fschofer |
Posted: Thu Jul 31, 2008 3:08 am Post subject: |
|
|
 Knight
Joined: 02 Jul 2001 Posts: 524 Location: Mainz, Germany
|
Hi,
you have to add a label to the loop regardless is it is a WHILE or REPEAT or LOOP loop if you want to use LEAVE or ITERATE.
Greetings
Frank |
|
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
|
|
|
|