If your intent is to move a file from one iSeries (or System i) to another iSeries/System i then I’m not sure why you are going through the intermediate step of a text file. But in any case, if you have TCP/IP up between the two systems then FTP is the way to go.
If you just want the data, ftp the file.
If you want the database:
Create a save file on the source system
Save the database to the save file
Create a save file on the target system
FTP the save file to the target system in binary mode
Restore the database on the target system
If you’re not familiar with FTP let us know. We can guide you through the steps (there aren’t many). If you don’t have TCP/IP between the two systems, let us know what options you do have in transferring data between the two systems (SNA, tape, etc).
Integrated solutions for the System i user community