We have a customer that is placing a file on their FTP server for daily pickup. This file will have a varying name from day to day as the filename contains the date to make it unique. There is the potential that a day could be missed and we would need to retrieve multiple files during the same attempt. Whether one or more files are retrieved, we would like them to be placed into a single generically named file in a directory in the IFS.
We will be initiating the FTP session from our AS400, logging into the customer's FTP server, obtaining the file(s) [all of which have the same file extension type-can we use a wildcard], and placing the file(s) into a single file in the IFS.
We have attempted to use MGET and MPUT but fear we may not have changed directories appropriately to direct our files to the proper destination.
Any help would be greatly appreciated.
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!