Create an RPG program to retrieve a list of existing files on an FTP server.
Written by Tom Snyder
In a previous article, I discussed how to upload a file to an FTP server and how to automate the process using RPG in a manner that would allow your program to evolve to easily support future modifications and server additions and changes. In this article, I'll discuss how you can retrieve information from an FTP server and use that information to download files.
This is the second in a series of articles related to detecting when an inquiry message has been sent on your system and then making processing decisions based on the inquiry message. The underlying technology being used is known as the reply-handling exit program and has been available since V5R2.