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 » FOR ALL ... AS syntax error

Post new topic  Reply to topic
 FOR ALL ... AS syntax error « View previous topic :: View next topic » 
Author Message
ajomillar
PostPosted: Tue Dec 02, 2003 7:41 am    Post subject: FOR ALL ... AS syntax error Reply with quote

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
View user's profile Send private message MSN Messenger
EddieA
PostPosted: Tue Dec 02, 2003 11:00 am    Post subject: Reply with quote

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
View user's profile Send private message
ajomillar
PostPosted: Tue Dec 02, 2003 12:26 pm    Post subject: Reply with quote

Centurion

Joined: 22 Aug 2003
Posts: 121
Location: Milwaukee, WI

Thanks for the correction.
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » FOR ALL ... AS syntax error
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.