× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.




List the server's directory with output to an AS400 flat file (DIROUTPUT).
Example: dir serverdir/*.txt (disk

Then read the AS400 flat file (DIROUTPUT) and "get" the txt file(s) from the
directory.


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of sjones@xxxxxxxxxxxxxx
Sent: Monday, December 06, 2010 11:57 AM
To: RPG programming on the IBM i / System i
Subject: FTP from RPG

I need to setup an FTP process that will connect to the FTP server &
download the file, which will be an xml document, process the xml
document, move the downloaded file to a folder on the FTP server to keep
as a backup & then get the next file - rinse repeat....

I can see the files using Filezilla but I don't know how I would go about
getting the filename & then processing it programmatically.


Can anyone share how this can be done or point me to how to do this?



Thanks
Steve Jones

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.