Good News Everybody!
The new search engine is LIVE!
Please report any problems to david (at) midrange.com.
|
The way to do this is straightforward.
One. Redesign your application so it doesn't hold a lock
on the file. The key verb is "hold". Your application
acquires a lock when it needs one and releases it as soon
as it can.
Two. Redesign your application so it is insensitive to
changes in the file.
With this done, an ALTER table or CHGPF can be done and
your application will wait while the change takes place
(the change will have an exclusive lock) and then resume.
Several ways to keep from holding a lock: CLOSE the file
within your program after every use and OPEN it only when
needed. Use SQL SELECT statements which don't hold a lock.
Use SQL CURSOR for read only.
To make your application insensitive to changes: Specify
LVLCHK *NO on compile and be careful not to change existing
fields when adding a field. Use embedded SQL with naming
the individual fields (no *) in the SELECT statements.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2026 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.