Help/Systems SEQUEL Software PowerTech Skybot Software
Help/Systems
The World's Leader in IBM iSeries Software Solutions

Using FTP to send an AS/400 Save File from a PC to an AS/400

  1. Create a save file on the AS/400, as follows:
  2. CRTSAVF FILE(SAVE_FILE_LIBRARY/SAVE_FILE_NAME)

  3. Go to an MS-DOS Shell.
  4. Go to the location on the PC where the save file is stored.
  5. Type:
  6. FTP (AS/400 IP-ADDRESS)

    Or

    FTP (AS/400 NAME)

  7. Enter your AS/400 username and password for that system when prompted.
  8. To ensure the transfer mode is binary (there will be no conversion), type:
  9. BIN

  10. To go to the library on the AS/400 where the save file is stored, type:
  11. CD SAVE_FILE_LIBRARY

  12. To transfer the save file from the PC to the empty save file on your AS/400, type:
  13. PUT PC_NAME SAVE_FILE_NAME

  14. When the transfer is complete, type the following to exit the ftp session:
  15. QUIT

  16. To close the MS-DOS shell, type:
  17. EXIT

After this, you can extract the information from that save file on your AS/400.

Example MS-DOS Shell

MICROSOFT(R) WINDOWS 95
(C) COPYRIGHT MICROSOFT CORP 1981-1996
C:\WINDOWS>CD . .
C:\>CD TEMP
C:\TEMP>FTP AS400
CONNECTED TO AS400.
220-QTCP AT AS400.
220 CONNECTION WILL CLOSE IF IDLE MORE THAN 5 MINUTES.
USER (AS400:(NONE)): USER
331 ENTER PASSWORD.
PASSWORD:
230 USER LOGGED ON.
FTP> CD SAVFLIB
250 CURRENT LIBRARY CHANGED TO SAVFLIB.
FTP> BIN
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)
FTP> QUIT
C:\TEMP>EXIT

Updated Oct. 6, 1999