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 » Access to LocalEnvironment in user functions

Post new topic  Reply to topic
 Access to LocalEnvironment in user functions « View previous topic :: View next topic » 
Author Message
TDS_tds_tds
PostPosted: Thu Sep 02, 2004 9:55 am    Post subject: Access to LocalEnvironment in user functions Reply with quote

Novice

Joined: 31 Jul 2003
Posts: 16

WMQI 2.1/ Solaris/CSD5

Is there any we can use LocalEnvironment in user defined functions ?

For ex:
Code:
CREATE FUNCTION getX(data CHAR) RETURNS CHAR
BEGIN
DECLARE C CHAR;
   set C = data;
   SET OutputLocalEnvironment.Variables.func1.value = data;
RETURN C;
END;


The above fails when deployed & complains OutputLocalEnvironment is not in scope..... yeh wat ever & i understand it .
but still, is there any way around to use LocalEnvironment capabilities in functions ???
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Sep 02, 2004 10:33 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You have to pass in a reference to LocalEnvironment.

If you dig around on this forum a bit you will find examples of doing this with Environment and InputRoot and OutputRoot.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
kirani
PostPosted: Thu Sep 02, 2004 5:42 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

Take a look at this thread,
http://www.mqseries.net/phpBB2/viewtopic.php?t=10595
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Access to LocalEnvironment in user functions
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.