|  | 
 
  
    | RSS Feed - WebSphere MQ Support | RSS Feed - Message Broker Support |  
 
  
	|    |  |  
  
	| CALLING A FUNCTION IN WMQI5.0 | « View previous topic :: View next topic » |  
  	| 
		
		
		  | Author | Message |  
		  | vijay707 | 
			  
				|  Posted: Thu Mar 04, 2004 10:16 am    Post subject: CALLING A FUNCTION IN WMQI5.0 |   |  |  
		  | Novice
 
 
 Joined: 12 Feb 2004Posts: 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 |  |  
		  |  |  
		  | kirani | 
			  
				|  Posted: Thu Mar 04, 2004 4:46 pm    Post subject: |   |  |  
		  | Jedi Knight
 
 
 Joined: 05 Sep 2001Posts: 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 |  |  
		  |  |  
		  | vijay707 | 
			  
				|  Posted: Fri Mar 12, 2004 6:27 am    Post subject: calling a funtion |   |  |  
		  | Novice
 
 
 Joined: 12 Feb 2004Posts: 18
 
 
 | 
			  
				| Thanks I will work on that. |  |  
		  | Back to top |  |  
		  |  |  
		  |  |  |  
  
	|    |  | Page 1 of 1 |  
 
 
  
  	| 
		
		  | 
 
 | 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
 
 |  |  |  |