On 4/26/2012 3:55 PM, Paul Therrien wrote:
I don't think I have much to add except to ask what operations are
the programs attempting to do when the message is encountered.

Nothing specially ... read's & updates mostly.

If you are doing a *REPLACE to the target file then that, I think,
would lock the file.

Yes, because it's essentially trying to do a CLRPFM before doing the copy.

is the error that the target (To) file is locked? Or the source
(From) file is locked?

The error is occurring when other programs attempt to access the TOFILE when the CPYF operation is taking place.

After a bit of experimentation, I'm no longer convinced that the problem is related to CPYF anymore.

I created a large file so that a CPYF would take a while to complete. When I add more records to the file and, in another session, query the file ... I have no problems at all. The target file is locked with *SHRRD.

Curiouser and curiouser.

david


This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2019 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].