Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in


Stored procedure getting locked/stopped

Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message

New User

Joined: 03 Apr 2007
Posts: 5
Location: India

PostPosted: Mon Jun 20, 2011 9:08 pm    Post subject: Stored procedure getting locked/stopped
Reply with quote


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


Active Member

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

PostPosted: Mon Jun 20, 2011 10:25 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1


Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Access SQLCA fields inside a stored p... gangapd DB2 4 Thu Oct 27, 2016 10:20 am
No new posts Is possible to call subprogram from c... cmsmoon COBOL Programming 3 Fri Aug 05, 2016 6:46 pm
This topic is locked: you cannot edit posts or make replies. Stored procedure on Federated thru DB2 arif677 DB2 6 Tue May 31, 2016 11:48 pm
No new posts Mainframe COBOL - DB2 Stored Procedure Elixir DB2 2 Sat Mar 19, 2016 9:39 am
No new posts Exception Handling in Native Stored P... Mariraj DB2 1 Thu Feb 25, 2016 4:08 am

Back to Top
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us