×
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.
I am creating a new SQLRPGLE program, and this program uses SQL for all
file select/insert/updates, but right in the middle I need to call a
20-year-old RPG program that does a few required RPG updates to one or more
rows already amended by the calling program. The older program can not be
changed.
The new program was working perfectly, but there turned out to be some rare
situations where the data changes had to be backed out so I added some SQL
commit and rollback lines in appropriate places. Now the called RPG program
fails every time with CPF5032 (record locked to this job).
What is the best way to get the entire unit of work from the new and old
programs to be accepted, or rolled back in the case of an error? Do I need
to re-implement the older program, or is there a setting that will allow it
to update the locked rows?
-Paul.
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.