We have an FTP client who is putting 4 files at a time on their server folder for us to pick up. I am running into a little issue and am looking for options.
They will not delete the files from their folder after we get them.
We do not have authority to delete them from their folder after we get them.
If I try to just download everything again, my ftplog shows that the files already exist on our IFS. This is true for four files, but there are four new files I need to get.
Files will just keep stacking up and download times and processing time on our end will grow as time goes on.
Is there a way to 'select' the last four files that were loaded to their folder?
Here is an example of the 'unique' file name.
> mget *.csv 227 Entering Passive Mode (204,16,136,72,13,159) 150 Here comes the directory listing. 226 Directory send OK. Path already exists: /home/test/20120405-103602_LoadMaster_040512103326.csv Specify REPLACE as a subcommand option.
More info on how I'm doing this download.
CLP does a STRTCPFTP RMTSYS(*INTNETADR) INTNETADR and uses a text file to process the needed steps once connected to the ftp server.
namefmt 1 lcd /home/test cd /out mget *.csv QUIT
AS400, V5R4 FTP mget
April 6, 2012 5:39 PM
April 11, 2012 2:18 AM