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



strictly as a workaround... open the file for read only with an RPGLE (like
Scott Klement examples) and write a new file to process.
If you can monitor the error msg - only take this route if the normal
cpyfrmimpf throws the error. Not pretty, but should work.

Jim Franz

On Thu, Aug 28, 2025 at 8:14 PM mlazarus <mlazarus@xxxxxxxxxxxx> wrote:

Patrik,

The lock that Excel seems to do is *not* exclusive. As I mentioned, a
MOV or REN is accepted. But, to answer your question, I can't make that
folder read only.

-mark

On 8/28/2025 6:32 PM, Patrik Schindler wrote:
Hello Mark,

Am 28.08.2025 um 22:13 schrieb mlazarus<mlazarus@xxxxxxxxxxxx>:


The situation is that there are .csv files in the IFS that might be
open in Excel. All the program is attempting to do is copy the data into a
PF. It seems to want an exclusive lock.

Another idea, inspired from Peter's reply.

Do you need those CSV files being writable by Excel? If no, why not make
this folder/share readonly for users? If Excel sees the file being
readonly, it presumedly can't or at least won't request an (exclusive)
write lock on it.

:wq! PoC

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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

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