|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
REFERENCE TO |
« View previous topic :: View next topic » |
Author |
Message
|
EvolutionQuest |
Posted: Wed Mar 24, 2004 6:22 am Post subject: REFERENCE TO |
|
|
 Voyager
Joined: 18 Sep 2001 Posts: 88 Location: Billings, MT
|
Why would this produce an error within my compute node:
Code: |
CREATE FIELD Environment.Variables.Derived_Data.My_Data.My_Group;
DECLARE My_Group_Ref REFERENCE TO Environment.Variables.Derived_Data.My_Data.My_Group;
|
It is point at the following:
Code: |
SET My_Group_Ref[b]{error right here}[/b][LOOP_CNT].Sales_Individual_Production_Number = "InputBody"."PDCR"."PRODUCER_NUMBER";
|
I don't see the problem because I have similar code above this one that is not creating an error. |
|
Back to top |
|
 |
EvolutionQuest |
Posted: Wed Mar 24, 2004 6:27 am Post subject: |
|
|
 Voyager
Joined: 18 Sep 2001 Posts: 88 Location: Billings, MT
|
The error I am getting is the following which now does make sense, but I would like a little clarification on how you would do this in a loop and still use a REFERENCE TO.
Code: |
BIP2916E: (277, 6) : Correlation names cannot be qualified.
Correlation names (the first name in a field reference) must be a simple name identifier. They cannot be qualified by a type, an index, a list specifier ([ ]) nor may the name be calculated by an expression.
Ensure that all correlation names are unqualified.
|
|
|
Back to top |
|
 |
Missam |
Posted: Wed Mar 24, 2004 6:47 am Post subject: |
|
|
Chevalier
Joined: 16 Oct 2003 Posts: 424
|
The Error itself saying that you can't use list operator with correlation names.because My_Group_Ref is a correlation name use can't use a list operator with that. |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Mar 24, 2004 6:59 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Okay, suppose you have a set of MyGroup elements - MyGroup[1],MyGroup[2], etc..
When you create a reference to just MyGroup, you are creating a reference to MyGroup[1]. So, you can't then use MyGroupRef[2] to refer to MyGroup[2], since that is pointing to the second child of MyGroup[1].
If you created a reference to MyData, then you could use MyDataRef[1] to point to MyData.MyGroup[1], and MyDataRef[2] to point to MyData.MyGroup[2]. _________________ I am *not* the model of the modern major general. |
|
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
|
|
|
|