One option is to issue command LCD /QOPENSYS in the FTP session, it creates the files in the IFs with MGET (you will then have to copy the files via the CPYFRMSTMF command).
The second option is to write an FTP script with ls (the disk will produce a list with the names of the files in the remote FTP directory, you can then loop the file and transfer the files one at a time.
MORE INFORMATION ON THIS TOPIC
Visit the ITKnowledge Exchange and get answers to your connectivity questions fast.
The Best Web Links: Tips, tutorials and more.
PC/Windows connectivity expert Shahar Mor is available to answer your toughest networking questions. Ask Shahar a question or read his previously answered questions here.
Dig Deeper on FTP
Related Q&A from Shahar Mor
Use work station customize object or printer type in iSeries Access to print the output of an RPG file from the AS/400 to an HP printer. Continue Reading
What to do when an application is published in IFS from Win2k3 server, and users are unable to access the shared folder on AS/400. Continue Reading
Connecting the iSeries in AS/400, issue STRHOSTSVR *ALL. Make sure the as-signon port is in listen state and check the firewall settings. Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.