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 » REFERENCE TO

Post new topic  Reply to topic
 REFERENCE TO « View previous topic :: View next topic » 
Author Message
EvolutionQuest
PostPosted: Wed Mar 24, 2004 6:22 am    Post subject: REFERENCE TO Reply with quote

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
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
EvolutionQuest
PostPosted: Wed Mar 24, 2004 6:27 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
Missam
PostPosted: Wed Mar 24, 2004 6:47 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Wed Mar 24, 2004 6:59 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » REFERENCE TO
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.