I want to ftp thousands of files to the unix server. But whenever the ftp step encounters the file which is not found, it fails with following error and doesn't ftp the files following the current one. What should i do to ftp all the files even if one of the files in the sequence is not present.
Joined: 06 Jun 2008 Posts: 8280 Location: Dubuque, Iowa, USA
I really have to question a business process requiring file transfer of thousands of files -- really question it!
If the thousands of files have common high level qualifiers, and the file names are compatible on the two systems, you could use the MPUT command of FTP to transfer the entire set of files without individually identifying each one.
The current business logic is written completely in REXX, which is invoked by a job.
1. Retrieving a file from unix which contains all the bounced email details.
2. These details are read one by one from the PS file. These details will tell us the PDS and its member details.
3. We are checking for the existance of member
4. Generating FTP card for the existing members
These job runs at the most for one minute if we have less number of records(around 50) in the PS file. But if the records are more(10,000 records or more), the job runs for more than 2 hours.
So I thought if we remove the existance check, the job may take less time. So before doing that, I tried to ftp the file which does not exist. But the FTP is failing. Can anyone guide me to improve the performance as this current logic is costing more.