× 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.



Steven,

We have run into the same problem and decided to eliminate the CPYF (which I assume you are following by a CLRPFM to avoid copying the same records twice?) by writing a small program that has the origin file as UP with the mainline code consisting of WRITE TARGET, DELET ORIGIN.

Depending on the importance of the sequence of input records you can change the ORIGIN file to reuse deleted records.

hth

Steven.Gray@xxxxxxxxxxxxxx wrote:

All,

I have a CL program which runs from midnight until 6am every night , in this
pgm it calls an RPG progam every 5 minutes which adds records to a file.

I have another program which runs every 1/2 hour in this time period and
copies the file which is being added to , to a remote location.

This is working fine except for the fact that every 1/2 hour the 1st pgm
reports an error , Error message CPF4128 appeared during OPEN . This is on the file which is being copied. Presumably the copy CL statement
is locking the file , so the 1st program cannot write to it.





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.