×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
Good question, but a dangerous one at the same time. For what reason
would you want to time out a request to the database? There are only a
few reasons that SQL requests would time out:
1) CPU utilization is too high.
2) The query is written for updates on locked records.
3) The query is processing a large amount of data without the necessary
resources.
4) The query is not optimized.
Before concerning yourself with timeouts in native RPG, you may want to
ensure that you have optimized the data access methods. Running SQL
interactively can be a slow process if the files and the query
statements are not optimized. If the queries do not need to run
interactively, consider pushing them to a batch process. If interactive
is required, optimize the queries as much as possible.
What is the situation you are referring to for which you want to
consider time outs?
Tom Armbruster
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of tim
Sent: Monday, March 02, 2009 11:57 AM
To: 'RPG programming on the IBM i / System i'
Subject: rpg sql timeout question
Is there a way to have a possibly long running sql performed in an
SQLRPGLE
program, to time out after running for a certain amount of time?
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.