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 » ESQL NEXTSIBLING Keyword doubt

Post new topic  Reply to topic
 ESQL NEXTSIBLING Keyword doubt « View previous topic :: View next topic » 
Author Message
jayeshn
PostPosted: Wed Jun 22, 2005 10:53 pm    Post subject: ESQL NEXTSIBLING Keyword doubt Reply with quote

Newbie

Joined: 14 Jun 2005
Posts: 7
Location: India

Hi,
I am new to ESQL, I was trying out the process of traversing anonymously through the input XML message using MQ Series integrator 2.1. I am using the following ESQL code in the Compute node of my message flow -
Code:

SET OutputRoot = InputRoot;
DECLARE empRef REFERENCE TO OutputRoot.XML.Request.Employee[1];
WHILE LASTMOVE(empRef) = TRUE
DO
    IF empRef.RequestType = 'NEW' THEN
      SET empRef.RequestType = 'Found New';
      ELSE IF empRef.RequestType = 'OLD' THEN
         SET empRef.RequestType = 'Found Old';
            END IF;
   END IF;
MOVE empRef TO NEXTSIBLING;
END WHILE;


However when I deply the same I am getting a syntax error for the keyword NEXTSIBLING. It says -- The correlation name 'NEXTSIBLING' is not valid. Those in scope are: Environment, InputLocalEnvironment, OutputLocalEnvironment, InputRoot, InputBody, InputProperties, OutputRoot, InputExceptionList, OutputExceptionList, InputDestinationList, OutputDestinationList, empRef.

I would appreciate if someone could help me out with this.

Thanks in Advance.

Jayesh.
_________________
Thanks,
Jayesh
Back to top
View user's profile Send private message Send e-mail
EddieA
PostPosted: Wed Jun 22, 2005 10:56 pm    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

Try:
Code:
MOVE empRef NEXTSIBLING;

The TO implies you are moving the pointer to another named Field Reference.

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
jayeshn
PostPosted: Wed Jun 22, 2005 11:04 pm    Post subject: Reply with quote

Newbie

Joined: 14 Jun 2005
Posts: 7
Location: India

Hi Eddie,
Thanks for your reply. It worked with

Code:

MOVE empRef NEXTSIBLING;


I am just wondering how come there are differences in the manner keywords are used in ESQL? In the book ESQL Reference from IBM it mentions on Pg 28 MOVE myref TO NEXTSIBLING for traversing to the next item in the array.
Hope there are not many such subtle differences
_________________
Thanks,
Jayesh
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 » ESQL NEXTSIBLING Keyword doubt
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.