| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| vani Beginner
 
 
 Joined: 28 May 2003
 Posts: 51
 Topics: 30
 
 
 | 
			
				|  Posted: Thu Oct 09, 2003 1:12 am    Post subject: Stored Procedure |   |  
				| 
 |  
				| We are exploring the ways the calls to the various SPs could be logged in a centralized place. The details to be logged are a.	Name of the SP
 b.	Start time of the SP
 c.	End-time of the Sp
 d.	Input parameters passed to the SP
 e.	Output parameters passed by the Sp
 
 Please note that the WLMs/SPAs(Work load Mgr/SP Address Space) runs in different LPARs.
 
 Is there any DB2 utility that will perform this function or any other way.
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| kolusu Site Admin
 
  
 
 Joined: 26 Nov 2002
 Posts: 12394
 Topics: 75
 Location: San Jose
 
 | 
			
				|  Posted: Thu Oct 09, 2003 5:00 am    Post subject: |   |  
				| 
 |  
				| vani, 
 Are the different LPARS inter-connected via DB2's Distributed Request Data Access architecture?? If they are then you can create a simple DB2 table in one of the LPARS and insert the data when ever the stored procedure is execueted.
 
 check this topic which discusses about Accessing tables in different DB2 sub-systems
 http://www.mvsforums.com/helpboards/viewtopic.php?t=67
 
 If the LPARS are not inter-connected , then I don't  think there is a way to accumulate the data in a centralized location
 
 Hope this helps...
 
 cheers
 
 kolusu
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| vani Beginner
 
 
 Joined: 28 May 2003
 Posts: 51
 Topics: 30
 
 
 | 
			
				|  Posted: Thu Oct 09, 2003 12:00 pm    Post subject: |   |  
				| 
 |  
				| SQL CALL failed due to SQLCODE = -991 rc1=000c
 rc2=00F30006
 
 Iam issuing a CONNECT before the CALL to the stored procedure but it is failing with the above error.
 
 Please tell us how to compile, link-edit, bind and run the stored procedure.
 
 
 Regards,
 Vani
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| kolusu Site Admin
 
  
 
 Joined: 26 Nov 2002
 Posts: 12394
 Topics: 75
 Location: San Jose
 
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		|  | 
	
		|  |