|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
ESQL - Reference Variables |
« View previous topic :: View next topic » |
Author |
Message
|
MQme |
Posted: Fri Feb 28, 2003 5:22 am Post subject: ESQL - Reference Variables |
|
|
Newbie
Joined: 28 Feb 2003 Posts: 5 Location: Pune, India
|
Hi,
I have a small query in ESQL (being used in the compute node).
I can create a reference variable pointing to my input node and the value of the node gets passed to the variable, but the same thing does not happen in the case of a reference variable to an output tag. This variable does not take in the value and pass it to the output.
code:
DECLARE inputCursor REFERENCE TO "InputBody"."IParent"."Ichild";
DECLARE outputCursor REFERENCE TO "OutputRoot"."OParent"."Ochild";
SET ouputCursor = inputCursor;
This last statement does not work as the reference variable ouputCursor is empty is no value being passed to the ouput.
But the statement below works:
SET "OutputRoot"."OParent"."Ochild" = inputCursor; |
|
Back to top |
|
 |
yaakovd |
Posted: Fri Feb 28, 2003 10:04 am Post subject: |
|
|
Partisan
Joined: 20 Jan 2003 Posts: 319 Location: Israel
|
Try create the tree before you using REFERENCE TO.
Code: |
DECLARE inputCursor REFERENCE TO "InputBody"."IParent"."Ichild";
SET "OutputRoot"."OParent"."Ochild" = '';
DECLARE outputCursor REFERENCE TO "OutputRoot"."OParent"."Ochild";
SET ouputCursor = inputCursor; |
_________________ Best regards.
Yaakov
SWG, IBM Commerce, Israel |
|
Back to top |
|
 |
MQme |
Posted: Mon Mar 03, 2003 12:08 am Post subject: Many thanks Yaakov |
|
|
Newbie
Joined: 28 Feb 2003 Posts: 5 Location: Pune, India
|
Dear Yaakov,
Many thanks you for sparing your time as well as extending timely help.
I have implemented your suggestion and the code works fine
Have a Wonderful week.
Jayanti Vaidya
Satyam Computer Services Ltd.
India. |
|
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
|
|
|
|