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 » CALLING A FUNCTION IN WMQI5.0

Post new topic  Reply to topic
 CALLING A FUNCTION IN WMQI5.0 « View previous topic :: View next topic » 
Author Message
vijay707
PostPosted: Thu Mar 04, 2004 10:16 am    Post subject: CALLING A FUNCTION IN WMQI5.0 Reply with quote

Novice

Joined: 12 Feb 2004
Posts: 18

i have defined defined a simple function outside the compute module.when i am calling the function inside the same compute node it is giving me a syntax error.

i am using the statement VALIDT_blob(SS) to invoke the function in compute node.

the function defined is

CREATE FUNCTION VALIDT_blob(SS char) RETURNS BOOLEAN
BEGIN
DECLARE file_str CHARACTER;
IF SUBSTRING(SS from 52 for 1) = '' THEN
set file_str = OVERLAY(SS placing '0' from 52 for 1);
END IF;
IF SUBSTRING(SS from 53 for 1) = '{' THEN
set file_str = OVERLAY(SS placing '0' from 53 for 1);
END IF;
RETURN TRUE;
END;
Back to top
View user's profile Send private message
kirani
PostPosted: Thu Mar 04, 2004 4:46 pm    Post subject: Reply with quote

Jedi Knight

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

From online help ...
Quote:

If you have created constants, functions, or procedures at the broker schema level, you can also refer to these within the module. You can therefore define routines at a level at which many different modules can use them, which can save you development time and maintenance effort.

_________________
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
vijay707
PostPosted: Fri Mar 12, 2004 6:27 am    Post subject: calling a funtion Reply with quote

Novice

Joined: 12 Feb 2004
Posts: 18

Thanks I will work on that.
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 » CALLING A FUNCTION IN WMQI5.0
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.