|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
FOR ALL ... AS syntax error |
« View previous topic :: View next topic » |
Author |
Message
|
ajomillar |
Posted: Tue Dec 02, 2003 7:41 am Post subject: FOR ALL ... AS syntax error |
|
|
 Centurion
Joined: 22 Aug 2003 Posts: 121 Location: Milwaukee, WI
|
Using Integrator 2.1, the following ESQL was added to a Compute Node.
Code: |
FOR ALL "InputBody"."ISE_RESULT"."IseError"[] AS I (I.ErrorMessageId IS NOT NULL)
DO
SET "OutputRoot"."XML"."WfMessage"."ProcessTemplateCreateAndStartInstance"."ProcInstInputData"."CustomerError"."ErrorDetail"[X]."ErrorCode" = I.ErrorMessageId;
SET X=X+1;
END
|
The ESQL editor indicates a syntax error with a flashing red cursor between "FOR" and "ALL." I followed the syntax shown in the ESQL Reference Guide. What could be the problem? |
|
Back to top |
|
 |
EddieA |
Posted: Tue Dec 02, 2003 11:00 am Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
Reading the manual, to me, that varaition of FOR is NOT a loop control. It is a way of evaluating the same condition(s) on multiple iterations.
Quote: |
1. Iterate over all instances of the field Item inside Body.Invoice.
2. For each iteration:
a. Bind the name I to the current instance of Item.
b. Evaluate the predicate I.Quantity <= 50. If the predicate:
v Evaluates to TRUE for all of the instances of Item, return TRUE.
v Is FALSE for any instance of Item, return FALSE.
v For a mixture of TRUE and UNKNOWN, it returns UNKNOWN. |
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
ajomillar |
Posted: Tue Dec 02, 2003 12:26 pm Post subject: |
|
|
 Centurion
Joined: 22 Aug 2003 Posts: 121 Location: Milwaukee, WI
|
Thanks for the correction. |
|
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
|
|
|
|