iSeries 400 - PC Save File Transfer Using FTP

Product: General
Modified Date:


The TCP/IP utility FTP (File Transfer Protocol) can be used to send iSeries 400 save files to and from PC workstations. This procedure assumes that TCP/IP and FTP support is active on the iSeries 400 and the PC workstation can access the iSeries 400 via TCP/IP.


Transferring iSeries 400 Save File from PC Workstation to iSeries 400

Note: this example will transfer an existing release save file called SGI211D in a directory called DOWNLOAD on the PC workstation to an iSeries 400 save file called SGI211D in library QGPL on the iSeries 400.

Step 1 - Create Save File SGI211D in library QGPL
  • CRTSAVF FILE(QGPL/SGI211D)

    Step 2 - Change to Directory DOWNLOAD and Start FTP Session
  • Open a DOS session on the PC and type 'cd c:\download'
  • Start FTP session by entering 'ftp nnn.nnn.nnn.nnn'
  • When prompted, enter a valid iSeries 400 user name and password to start the FTP session

    Step 3 - Change to library QGPL and Set Transfer Mode to Binary
  • Enter 'cd QGPL'
  • Enter 'binary'

    Step 4 - Transfer File and Terminate Session
  • Enter 'put SGI211D'
  • When the transfer is complete, enter 'QUIT' to terminate FTP session.

    When complete, the iSeries 400 file SGI211D will reside in library QGPL on the iSeries 400. A sample session is listed below.

    ==> CRTSAVF FILE(QGPL/SGI211D) C:\> cd \download
    C:\download> ftp 199.245.100.123
    Connected to 199.245.100.123.
    220-QTCP at AS400.
    220 Connection will close if idle more than 5 minutes.
    User (207.3.70.123:(none)): userid
    331 Enter password.
    Password: XXXXX
    230 USERID logged on.
    ftp> cd QGPL
    ftp> binary
    200 Representation type is binary IMAGE.
    ftp> put SGI211D
    200 PORT subcommand request successful.
    150 Transferring file SGI211D in directory DOWNLOAD.
    250 File transfer completed successfully.
    3792624 bytes sent in 78.38 seconds 48.39 Kbytes/sec)
    ftp> quit
    221 QUIT subcommand received.

    Transferring iSeries 400 Save File to PC Workstation

    Note: this example will transfer an existing save file called FTPXFR in library QGPL to directory DOWNLOAD on the PC workstation.

    Step 1 - Change to Directory DOWNLOAD and Start FTP Session
  • Open a DOS session on the PC and type 'cd \download'
  • Start FTP session by entering 'ftp nnn.nnn.nnn.nnn'
  • When prompted, enter a valid iSeries 400 user name and password to start the FTP session

    Step 2 - Change to library QGPL and Set Transfer Mode to Binary
  • Enter 'cd QGPL'
  • Enter 'binary'

    Step 3 - Retrieve File and Terminate Session
  • Enter 'get FTPXFR'
  • When the transfer is complete, enter 'QUIT' to terminate FTP session.

    When complete, the iSeries 400 file FTPXFR will reside in directory C:\DOWNLOAD on the PC workstation. A sample session is listed below.

    C:\> cd \download
    C:\download> ftp 199.245.100.123
    Connected to 199.245.100.123.
    220-QTCP at AS400.
    220 Connection will close if idle more than 5 minutes.
    User (207.3.70.123:(none)): userid
    331 Enter password.
    Password: XXXXX
    230 USERID logged on.
    ftp> cd QGPL
    ftp> binary
    200 Representation type is binary IMAGE.
    ftp> get FTPXFR
    200 PORT subcommand request successful.
    150 Retrieving file FTPXFR in library QGPL.
    250 File transfer completed successfully.
    3792624 bytes sent in 78.38 seconds 48.39 Kbytes/sec)
    ftp> quit
    221 QUIT subcommand received.


    ** End of Technical Support Bulletin **