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 » Set Environment in a ESQL procedure

Post new topic  Reply to topic
 Set Environment in a ESQL procedure « View previous topic :: View next topic » 
Author Message
KIT_INC
PostPosted: Tue May 11, 2010 9:35 am    Post subject: Set Environment in a ESQL procedure Reply with quote

Knight

Joined: 25 Aug 2006
Posts: 589

I am trying to create a common ESQL procedure which can be called by other node.
The code is like
create PROCEDURE MyTestCommon ( )
BEGIN
:
my esql
:
SET Environment.Variables.CommonData = '12345';
:
END;

I found out that i'll get a warning if I try to set an Environment,Variables inside that procedure.
It will actually fail the deployment with error "The correlation name 'Environment.Variables.CommonData' is not valid."

Is setting environment in a common ESQL module not allowed ?
Back to top
View user's profile Send private message
Esa
PostPosted: Tue May 11, 2010 9:52 am    Post subject: Reply with quote

Grand Master

Joined: 22 May 2008
Posts: 1387
Location: Finland

That is because correlation names like InputRoot and Environment only are visible within a module. You must give a reference to Environment as an argument to your procedure.
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 » Set Environment in a ESQL procedure
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.