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 » Storing an array in LocalEnvironment

Post new topic  Reply to topic
 Storing an array in LocalEnvironment « View previous topic :: View next topic » 
Author Message
d
PostPosted: Fri Mar 24, 2006 6:55 am    Post subject: Storing an array in LocalEnvironment Reply with quote

Apprentice

Joined: 24 May 2002
Posts: 25

Hi,

In a compute node, I am trying to select certain columns from a table & store the resultset into the LocalEnvironment. Is there a way that I can store an array in LocalEnvironment.Variables ?

I am using MessageBroker 5.0

This was the piece of code that I was trying :
CREATE FIELD OutputLocalEnvironment.Variables.QueueNames[];
SET OutputLocalEnvironment.Variables.QueueNames[] = (SELECT R.QUEUE_NAME FROM Database.TABLE1 AS R WHERE R.PROCESS_NAME = processName);

But I am getting an error :
The dynamic field reference supplied to the CREATE statement does not resolve to a non-list field in a modifiable message tree.
The dynamic field reference supplied to the CREATE statement must resolve to a non-list field in a modifiable message tree.
Ensure that only non-list references to modifiable trees are passed to the CREATE statement.

Could someone please help me out ?

Thanks,
d
Back to top
View user's profile Send private message
JT
PostPosted: Fri Mar 24, 2006 7:03 am    Post subject: Reply with quote

Padawan

Joined: 27 Mar 2003
Posts: 1564
Location: Hartford, CT.

Try:
Code:
CREATE FIELD OutputLocalEnvironment.Variables.QueueNames;
SET OutputLocalEnvironment.Variables.QueueNames[] = (SELECT R.QUEUE_NAME FROM Database.TABLE1 AS R WHERE R.PROCESS_NAME = processName);

or
Code:
SET OutputLocalEnvironment.Variables.QueueNames[] = (SELECT R.QUEUE_NAME FROM Database.TABLE1 AS R WHERE R.PROCESS_NAME = processName);

Either should work for you.
Back to top
View user's profile Send private message
d
PostPosted: Mon Mar 27, 2006 2:19 am    Post subject: Reply with quote

Apprentice

Joined: 24 May 2002
Posts: 25

Thank you.
I used the second option & it is working now.
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 » Storing an array in LocalEnvironment
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.