I want to check to see if a file is present before running
Posted: Tue Feb 07, 2012 2:44 pm
I have a project that needs to pull two files from two different remote FTP servers. The files are decrypted and then merged. After that RPG programs run to process the merged file.
I need to check each of the servers and make certain the files are both there [before] pulling either one. If I pull one and not the other the RPG jobs will fail. Once I pull either file, the remote server sees it as pulled and the file is removed from the directory where I can get to it. So I want to be able to "check for the file" but not pull either one until both files are there.
How do I do that?
- Roc
I need to check each of the servers and make certain the files are both there [before] pulling either one. If I pull one and not the other the RPG jobs will fail. Once I pull either file, the remote server sees it as pulled and the file is removed from the directory where I can get to it. So I want to be able to "check for the file" but not pull either one until both files are there.
How do I do that?
- Roc