Downloading an AS/400 Library or Objects via FTP

The following steps show you how to download an AS/400 library via FTP. To download an AS/400 library via FTP, you must first save the library as an AS/400 save file first.
 
The example in these instructions assumes the following:
  • The save file is named FTPSAVF in the library QGPL.
  • The IP address is 26.26.26.26.
  • The name of the PC file for the download is c:\ftpsavf.lib.

Replace these values with values appropriate for your FTP download.

To download an AS/400 library via FTP:
  1. Create the AS/400 save file using the following command:

    CRTSAVF FILE(QGPL/FTPSAVF)

  2. Save all appropriate objects to the save file using the SAVLIB or SAVOBJ commands.
  3. Go to the DOS prompt and start FTP file transfer by typing FTP and pressing Enter.
  4. In the FTP> prompt, to open an FTP connection, type open 26.26.26.26 and press Enter.
  5. In the AS/400 log-in prompt, type your AS/400 User ID and password to log in to the AS/400 FTP Server.
  6. After you have logged in, in the FTP command prompt, type binary and press Enter.
  7. To download the AS/400 library, type:

    recv qgpl/ftpsavf c:\ftpsavf.lib

 

Uploading an AS/400 Library or Objects via FTP

The following steps show you how to upload an AS/400 library via FTP.
 
The example in these instructions assumes the following:
  • The save file is named FTPSAVF in the library QGPL.
  • The IP address is 26.26.26.26.
  • The name of the PC file being uploaded is c:\ftpsavf.lib.
Replace these values with values appropriate for your FTP upload.
 
To upload an AS/400 library via FTP:
 
  1. Create the AS/400 save file using the following command:

    CRTSAVF FILE(QGPL/FTPSAVF)

  2. Go to the DOS prompt and start FTP file transfer by typing FTP and pressing Enter.
  3. In the FTP> prompt, to open an FTP connection, type open 26.26.26.26 and press Enter.
  4. In the AS/400 log-in prompt, type your AS/400 User ID and password to log in to the AS/400 FTP Server.
  5. After you have logged in, in the FTP command prompt, type binary and press Enter.
  6. To download the AS/400 library, type:

    send c:\ftpsavf.lib qgpl/ftpsavf

  7. Restore all appropriate objects from the save file using the SAVLIB or SAVOBJ commands.

 

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