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



Hi!

I have to create a system that reads/writes files in IFS. At the same time, an 
external application would have also to read/write files. To avoid that both 
the AS400 and the PC application write/read at the same time, we have tought we 
will write some kind of flag files, so when the AS400 program works, will write 
a dummy AS400.txt file in the folder (so the PC Application should not work 
until the AS400.txt is gone).
We launch our Program in the As400 (a lock that every 10 seconds will check the 
PC flag file, and if not found, then write the AS400 flag file, checking again 
PC flag, just if the PC was writing after writing the AS400, then working with 
the files that are in the folder, and deleting the AS400 flag file). For 
checking the PC flag file we use "access", for writing the AS400 flag file use 
"cpy" (a small CL program that does it), and for deleting we use "unlink".
The problem is: after some iteractions of our AS400 lock, we get the error that 
the CL program cannot write the AS400 flag file with error CPFA0A4.Too many 
open files for process. We always unlink the file before the iteraction is 
finished.
I have had a look in the database about this error but didn´t found anything 
that could help me.
Any suggestions? Is any other way of getting this under control?
Thanks for your time

Jaime



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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

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.