Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FTP - again.

Status
Not open for further replies.

pantherv

IS-IT--Management
Jun 18, 2003
6
GB
I have a program that outputs to a single file from a series of files (orders, items, invoice etc). Then I do CPYTOIMPF to set up a stream file as /filename.csv.

With FTP from a PC I can grab this file and download direct to Excel (albeit without column headings, but as the plan is to extract data, headings can be applied later). I want to run FTP from the AS/400 and download the file to one of our connected servers as I can then keep the file creation, IMPF and FTP commands all together in one routine. I assume this is possible? Have been trying FTP from the command line but cannot OPEN to any connected server when the IP code is given. Error is "Cannot connect to host X at address X. Try again later."
 
Better yet, use the server name instead of the IP address and let DNS resolve it (but you may still have to surround the name with single quotes).


"When once you have tasted flight, you will forever walk the Earth with your eyes turned skyward, for here you have been, and there you will always long to return."

--Leonardo da Vinci

 
Thanks for the replies. Still no joy, even with single quotes. Will ensure FTP server is active at the target IP address and then respond. Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top