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 File Between AS400's 1

Status
Not open for further replies.

Skittle

ISP
Sep 10, 2002
1,528
US
Bit off track from RPG but couldn't think of anywhere else to post this one.

How can I use FTP to transfer a file from one AS400 to another AS400? I have tried 'get' as 'EBCDIC' but the field formatting is lost. Is there a way of doing it with FTP or should I try something else?



Dazed and confused
 
Compile the DDS for the target file on the target machine and transfer the file as BINARY.


"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 flapeyre.

It worked a treat although I had to delete the empty member on the target machine first so that FTP would add the transferred data as a member.



Dazed and confused
 
To keep from having to do that, append (replace (just like that -- no right parenthesis) to the put subcommand:
Code:
put sourcefile destfile (replace


"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

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top