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 » select multiple element of same name from Environment

Post new topic  Reply to topic
 select multiple element of same name from Environment « View previous topic :: View next topic » 
Author Message
KIT_INC
PostPosted: Wed Jul 28, 2010 8:17 am    Post subject: select multiple element of same name from Environment Reply with quote

Knight

Joined: 25 Aug 2006
Posts: 589

My ESQL to set up the Environment is like this
SET Environment.AA.BB.CC.ITEM1[1] = 'ABC1111';
SET Environment.AA.BB.CC.ITEM1[2] = 'ABC1112';
SET Environment.AA.BB.DD.ITEM1 = 'ABD1111';
SET Environment.AA.BB.CC.ITEM2 = 'ABC2221';
SET Environment.AA.BB.CC.ITEM3 = 'ABC3331';


Now I want t select all ITEM1 from the Environment.
I use
SET Environment.ITEMRESULT1[] = (SELECT P.ITEM1 FROM Environment.AA.BB.[] AS P);

Using debug under Environment, I can see the results as follow
ITEMRESULT1
ITEM1 ABC1111
ITEMRESULT1
ITEM1 ABD1111


I have problem picking up
Environment.AA.BB.CC.ITEM1[2] = 'ABC1112';

Can some one help with my ESQL so that I can get all ITEM1 ?
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 » select multiple element of same name from Environment
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.