I have a system for updating files where the user is creating a text file from a database system. This is placed on the IFS where a monitoring program is watching the folder. If file is there then it runs another program to cpyfrmimpf to an iSeries file.
If the file copies ok then the file is moved to an archive folder and all is well. If the folder is empty then an error is generated CPF2817, e-mail is sent to user BUT the system can not move the file to the archive folder because it is locked and in use (CPFA09E). Can't even manually delete it from PC.
The only way to release the file is to end my system and restart.
How can the called RPGLE program release the empty file. All commands are done within my RPGLE. The monitor program calls the applicable program that does the cpyfromimpf and does the processing then once done returns with *INlr on to the monitoring program that is attempting to do the move.
Any ideas will be greatly appreciated.
thnx
Bill
If the file copies ok then the file is moved to an archive folder and all is well. If the folder is empty then an error is generated CPF2817, e-mail is sent to user BUT the system can not move the file to the archive folder because it is locked and in use (CPFA09E). Can't even manually delete it from PC.
The only way to release the file is to end my system and restart.
How can the called RPGLE program release the empty file. All commands are done within my RPGLE. The monitor program calls the applicable program that does the cpyfromimpf and does the processing then once done returns with *INlr on to the monitoring program that is attempting to do the move.
Any ideas will be greatly appreciated.
thnx
Bill





Comment