Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 663
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 Handling result sets in the calling N... Rusikesh DB2 7 Fri Apr 13, 2018 12:25 am
No new posts CICS web service from DB2 Triggers or... kiranprasad DB2 2 Wed Dec 20, 2017 11:10 am
No new posts Create procedure issues -628 when add... chandraBE DB2 1 Mon Sep 18, 2017 12:16 pm
No new posts Query on DB2 WLM stored procedures ashek15 DB2 8 Sun Feb 12, 2017 11:13 pm
No new posts Calling procedure with multiple entri... steve-myers PL/I & Assembler 5 Fri Jan 27, 2017 3:33 pm

Back to Top
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us