|
The best solution for me was to create the file in my application data library and use CPYTOIMPF to place the file in the IFS. Works well in my circumstance. Norm ----- Original Message ----- From: "Giri Gopal" <GiriGopal@bcginK.com> To: <rpg400-l@midrange.com> Sent: Friday, 2 November 2001 5:25 Subject: Help with IFS files Hello: I am using RPGIV to write to IFS file system. Another PC based application is has a mapped drive to this folder. This application is monitoring for a file every 2 minutes. The problem is I open the IFS file for ouput in my RPG program, and while I am writing to this IFS file, the other system sees the file and grabs it even before I am done writing. More importantly the other application deletes the file once it has copied this file. They use FTP to get this file. Question is: How can I open the file and have a lock until I am done writing? Thanks for your help in advance. Giri _______________________________________________ This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l or email: RPG400-L-request@midrange.com Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-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.