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 » question on reusable esql code

Post new topic  Reply to topic
 question on reusable esql code « View previous topic :: View next topic » 
Author Message
vids
PostPosted: Tue Apr 12, 2005 1:31 pm    Post subject: question on reusable esql code Reply with quote

Acolyte

Joined: 24 Mar 2003
Posts: 68
Location: CA, USA

Hi,

I'm using WBIMB 5.0.2. I have a messageFlowProject1 under which I have schema1 which has around 10 flows and associated esql files.
I need to call a particular function in all these 10 esql files. To make that function reusable, I created a new util.eqsl file under schema1 and put the function in this util.esql.

Here is what my util.esql contains....

CREATE FUNCTION GetCurrentGMT() RETURNS CHARACTER

BEGIN
code goes here....
RETURN xyz;

END;

I'm calling this GetCurrentGMT() in all the modules within the same schema.
My util.eqsl does not contain any MODULE or main function.

Just wondering if this is the right way to do it. Is there any other way to make the code reusable?
How to make this function reusable across different schemas?

Thanks
Vids
Back to top
View user's profile Send private message
vids
PostPosted: Tue Apr 12, 2005 3:22 pm    Post subject: Reply with quote

Acolyte

Joined: 24 Mar 2003
Posts: 68
Location: CA, USA

I'm able to call this function from different projects by having project reference.

Vids
Back to top
View user's profile Send private message
shra_k
PostPosted: Fri Apr 15, 2005 3:31 am    Post subject: Reply with quote

Apprentice

Joined: 30 Dec 2002
Posts: 37

make the function under schema so that all the modules in the schema can have it.
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 » question on reusable esql code
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.