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 and other Operations on Environment Variables [ESQL]

Post new topic  Reply to topic
 Select and other Operations on Environment Variables [ESQL] « View previous topic :: View next topic » 
Author Message
arthasdk
PostPosted: Tue Nov 01, 2016 8:43 am    Post subject: Select and other Operations on Environment Variables [ESQL] Reply with quote

Newbie

Joined: 04 Aug 2016
Posts: 3

Hi Guys,

I have the result of 2 queries stored in two variables like :
SET Environment.Variables.Var1[] = SELECT col1,col2... from Table1... where .....;

SET Environment.Variables.Var2[] = SELECT col1,col2... from Table2... where .....;

Now, I have to do a inner join between Var1 and Var2, using something like below:
SET Environment.Variables.Var1[] = SELECT A.*, B.* FROM
Environment.Variables.Var1[] AS A, Environment.Variables.Var2[] AS B
WHERE A.col1 = B.col1;

This is throwing me an error at run time, please advice whether something like this is remotely possible, thanks !

Note1 : The queries for Var1/Var2 aren't so simple and I have also added stuff to the variables after the select...

Thanks !!
Back to top
View user's profile Send private message
timber
PostPosted: Wed Nov 02, 2016 1:14 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1292

It definitely should be possible; most things are possible with a SELECT statement if you try hard enough

I would advise you to simplify the SELECT statement until it works, then progressively add back the stuff that you took out until it breaks. At that point, *carefully* read the error messages that you get (make sure to take a user trace so that you get the entire text of the runtime messages) and see if you can work out what the problem is.

Feel free to post again (with full text of any errors) if you get stuck.
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 and other Operations on Environment Variables [ESQL]
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.