|
Hi List
We have a program that makes use of the CPYF command to copy data from a
work file in QTEMP to a corresponding file in our data library.
Depending on the file being used there can be upwards to 100,000 records
being copied which is starting to cause a problem as the CPYF applies a
lock to the file being copied into.
The help text describes the restriction as:
o During the time a CPYF request is run, the file specified for
the To file (TOFILE) parameter may be locked (similar to an
*EXCL lock with no timeout) so that no access is possible.
Because the file is locked this is causing other programs to fail
CPF4128 and RPG1216 errors. I am thinking about putting in a change to
use an SQL insert instead of the CPYF and was wondering if anybody knows
whether or not using SQL would apply a lock to the receiving file.
Thanks in advance
Jonathan
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
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.