|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
ESQL NEXTSIBLING Keyword doubt |
« View previous topic :: View next topic » |
Author |
Message
|
jayeshn |
Posted: Wed Jun 22, 2005 10:53 pm Post subject: ESQL NEXTSIBLING Keyword doubt |
|
|
 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 |
|
 |
EddieA |
Posted: Wed Jun 22, 2005 10:56 pm Post subject: |
|
|
 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 |
|
 |
jayeshn |
Posted: Wed Jun 22, 2005 11:04 pm Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
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
|
|
|
|