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



Your analysis is correct.  The file is in use by the first program that
calls the second so it cannot be cleared.

You have a couple of options.  First, you could execute the two CL programs
from a third CL program or create an RPG program (executed from the first CL
program) to check FTPOUT for errors and remove the DCLF from the first CL
program.

Hope that helps.

Donald R. Fisher, III
Project Manager
The Roomstore Furniture Company
(804) 784-7600 ext. 2124
DFisher@roomstoreeast.com

<clip>
I have a CL program which does the following:

DCLF(FTPOUT)
CLRPFM (FTPOUT)
...fill FTPOUT during a scripted FTP process
...do RCVF for the records in FTPOUT to check for errors

CALL(FTP2PGM)

Second program:
PGM(FTP2PGM)
DCLF(FTPOUT)
CLRPFM(FTPOUT)
...similar to previous process

The 2nd program errors out during the CLRPFM(FTPOUT) with an error saying
that the file is already in use.  I'm assuming that this is from the first
program already opening the file and calling a second CL which also tries
to use the file, but I'm not really sure what's going wrong.
<clip>


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.