The following procedure describes how to send an IBM i save file to a PC using File Transfer Protocol (FTP).

  1. Go to an MS-DOS Shell.

  2. Go to the location on the PC where you want to store the save file.

  3. Enter one of the following:

    ftp (ibmi_ip_address)
    ftp (ibmi_name)

    Note: FTP commands are all lowercase.

  4. Enter your IBM i username and password for that system when prompted.

  5. To ensure the transfer mode is binary (there will be no conversion), enter the following command:

    BIN

  6. To go to the library on the IBM i where the save file is stored, enter the following command:

    CD library

  7. To transfer the save file from the IBM i to your PC, enter the following command:

    GET name

  8. When the transfer is complete, enter the following command to exit the FTP session:

    QUIT

  9. To close the MS-DOS shell, enter the following command:

    EXIT

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> GET NAMESAVF
200 PORT SUBCOMMAND REQUEST SUCCESSFUL.
150 RETRIEVING 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

Still have questions? We can help. Submit a case to technical support

Last Modified On:
You don't have the appropriate permissions.
No, open a new Support Case