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:
- Create the AS/400 save file using the following command:
CRTSAVF FILE(QGPL/FTPSAVF)
- Save all appropriate objects to the save file using the SAVLIB or SAVOBJ commands.
- Go to the DOS prompt and start FTP file transfer by typing FTP and pressing Enter.
- In the FTP> prompt, to open an FTP connection, type open 26.26.26.26 and press Enter.
- In the AS/400 log-in prompt, type your AS/400 User ID and password to log in to the AS/400 FTP Server.
- After you have logged in, in the FTP command prompt, type binary and press Enter.
- 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:
- Create the AS/400 save file using the following command:
CRTSAVF FILE(QGPL/FTPSAVF)
- Go to the DOS prompt and start FTP file transfer by typing FTP and pressing Enter.
- In the FTP> prompt, to open an FTP connection, type open 26.26.26.26 and press Enter.
- In the AS/400 log-in prompt, type your AS/400 User ID and password to log in to the AS/400 FTP Server.
- After you have logged in, in the FTP command prompt, type binary and press Enter.
- To download the AS/400 library, type:
send c:\ftpsavf.lib qgpl/ftpsavf
- Restore all appropriate objects from the save file using the SAVLIB or SAVOBJ commands.
Last Modified On:
No, open a new Support Case