|
Hi Art, > > Too many open files for process. > What you have to understand about this error message is that it doesn't really mean "files". It means "file descriptors". It could be that you have too many stream files opened with the open() API (which CPYTOSTMF uses under the covers) but it could also be too many open sockets, too many open pipes, or a combination. > > I added a RCLRSC before the CPYTOSTMF, but that didn't help things. > I'd be very surprised if it had. RCLRSC only works in the default activation group -- which I doubt is in use here, since in order to use things like stream files, pipes and sockets, you really have to be an ILE program. RCLACTGRP might be more appropriate. But even so, you're working around the problem isntead of fixing it. Somewhere the close() API should be called to close a socket, pipe or stream file, and it isn't being called. Eventually you're using up all of the avialable descriptors, and it's giving you errors. > This CLP copies files to the IFS (lots of them), then uses Brad Stones > GETURI to transmit them to a web service. > > Any ideas? My best guess is that the problem isn't in CPYTOSTMF, but rather is somewhere in GETURI. Perhaps there's a step that closes the HTTP connection that you're not running? Otherwise, I'd assume it's a bug, and ask Brad for help.
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.