|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Trouble setting up a REFERENCE to an output structure. |
« View previous topic :: View next topic » |
Author |
Message
|
tbt102 |
Posted: Mon May 12, 2003 9:08 am Post subject: Trouble setting up a REFERENCE to an output structure. |
|
|
Apprentice
Joined: 21 Apr 2003 Posts: 28
|
Hi all,
I'm having trouble setting up a REFERENCE to an output structure. See code below.
Would some point me in the right direction? Thanks in advance for any help.
Here is what I have tried so far:
DECLARE refOutput REFERENCE TO "OutputRoot"."MRM"."OUTPUT_FORECAST_RECORD"[intNextMesgOut];
DECLARE refOutput REFERENCE TO "OutputRoot"."MRM"."OUTPUT_FORECAST_RECORD"[];
DECLARE refOutput REFERENCE TO OutputRoot.MRM.OUTPUT_FORECAST_RECORD[intNextMesgOut];
DECLARE refOutput REFERENCE TO OutputRoot.MRM.OUTPUT_FORECAST_RECORD[];
All return the following message to the trace log:
BIP2543E: Node 'path.Compute1': (27, 39) : Failed to navigate to path element because it does not exist. |
|
Back to top |
|
 |
kirani |
Posted: Mon May 12, 2003 10:50 am Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Please make sure the element exist before you reference to it. In your sample code, I don't see any ESQL statement which creates these elements. Here is an example,
Code: |
SET "OutputRoot"."MRM"."OUTPUT_FORECAST_RECORD"[1].somefiled = ....;
SET intNextMesgOut = 1;
DECLARE refOutput REFERENCE TO "OutputRoot"."MRM"."OUTPUT_FORECAST_RECORD"[intNextMesgOut];
...
|
_________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
tbt102 |
Posted: Tue May 13, 2003 3:52 am Post subject: |
|
|
Apprentice
Joined: 21 Apr 2003 Posts: 28
|
Creating the elements worked Kiran. Thanks. |
|
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
|
|
|
|