The following procedure describes how to send an IBM i save file from a PC to an IBM i using File Transfer Protocol (FTP).
Create a save file on the IBM i, as follows:
Go to an MS-DOS Shell.
Go to the location on the PC where the save file is stored.
Enter one of the following:
Note: FTP commands are all lowercase.
Enter your IBM i username and password for that system when prompted.
To ensure the transfer mode is binary (there will be no conversion), enter the following command:
To go to the library on the IBM i where the save file is stored, enter the following command:
To transfer the save file from the PC to the empty save file on your IBM i, enter the following command:
PUT pc_name save_file_name
When the transfer is complete, enter the following command to exit the FTP session:
To close the MS-DOS shell, enter the following command:
After this, you can extract the information from that save file on your IBM i.
MICROSOFT(R) WINDOWS 95
(C) COPYRIGHT MICROSOFT CORP 1981-1996
C:\WINDOWS>CD . .
CONNECTED TO AS400.
220-QTCP AT AS400.
220 CONNECTION WILL CLOSE IF IDLE MORE THAN 5 MINUTES.
USER (AS400:(NONE)): USER
331 ENTER PASSWORD.
230 USER LOGGED ON.
FTP> CD SAVFLIB
250 CURRENT LIBRARY CHANGED TO SAVFLIB.
200 REPRESENTATION TYPE IS BINARY IMAGE.
FTP> PUT PCNAME NAMESAVF
200 PORT SUBCOMMAND REQUEST SUCCESSFUL.
150 SENDING FILE TO MEMBER NAMESAVF IN FILE NAMESAVF IN LIBRARY SAVFLIB.
250 FILE TRANSFER COMPLETED SUCCESSFULLY.
514800 BYTES RECEIVED IN 2.14 SECONDS (240.56 KBYTES/SEC)
Have you booked your annual Tech Update yet? Schedule one today.
Still have questions? We can help. Submit a case to Technical Support.