|
I'm not sure I fully understand your environment as you're adding files/documents and the PC is presumeably reading existing files that the AS/400 job has not yet unlocked; but there are several APIs to lock a stream file. There are also several methods available to the PC so it's difficult to say which AS/400 API would recreate the same environment. Some of the APIs to look at would be DosSetFileLocks(), fcntl(), and just good old open(). Bruce > >We have an application that places files in qdls, we have a pc application that >takes them out, of QDLS, occasionally the PC locks a document, when we are >adding documents, we have written some code to get round this and are looking >for a way to test this, what we need is a way to lock a QDLS >document, any ideas. > +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
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.