|
MOV ( move an object) can solve your problem. Create the file in a work directory and move it when you are done. Because move only changes the link, the file will be availabe, complete and closed as soon as it appears in the directory. ___________________________________________________________________________________________ Norm Dennis wrote: > 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
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.