IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Stored procedure getting locked/stopped


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
madhiolli

New User


Joined: 03 Apr 2007
Posts: 5
Location: India

PostPosted: Mon Jun 20, 2011 9:08 pm
Reply with quote

Hi

Our mainframe stored procedure is accessed by a java application (web screen).

When there are more number of records ( more than 8000 records) to retrieve from DB2, the system takes more time and in the process we get timed out and then System Exception error occurs. We are not able to find out the exact threshold value as we see that sometimes it works for more than 8000 records also and sometime it fails for around 7000 records also.

The main problem here is when we perform a search which will fetch more records, system exception occurs and at the back end the Stored Procedure stops working. Once the SP stops, we are not able to perform even a simple search as we will get only system exception error till the time the SP is restarted.

Can anyone guide me why the SP is behaving this manner?
Is there anything that needs to be done in the SP definition or DB2 environment setup to avoid SP getting stopped.
Back to top
View user's profile Send private message
don.leahy

Active Member


Joined: 06 Jul 2010
Posts: 765
Location: Whitby, ON, Canada

PostPosted: Mon Jun 20, 2011 10:25 pm
Reply with quote

Check with your DBA or other site support personnel. Stored Procedures are often set up with a parameter that sets a limit on the number of times it abends before the procedure is stopped. You can ask them to change that limit (they will probably say no) but that will not address the cause of the "system error".
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts MQ response when MQGET of a stopped q... Java & MQSeries 2
No new posts Invoke stored procedure via batch JCL. DB2 2
No new posts Calling COBOL DB2 program from a COBO... COBOL Programming 2
No new posts Cond parameter and Rc code of a proce... JCL & VSAM 5
This topic is locked: you cannot edit posts or make replies. Internal Autonomous Stored Procedure ... DB2 6
Search our Forums:

Back to Top