Uploading an IBM i Library or Objects using FTP |
Listed below the following steps to Upload the IBM i(AS400) library or objects through FTP (File Transfer Protocol).
Upload steps:
- Open the DOS prompt by typing RUN command on start menu search bar and press Enter and then type cmd in OPEN field on the Run dialog and press Enter or click on OK button of the Run Dialog and start FTP file transfer by typing FTP and pressing Enter. After that in the FTP prompt,type OPEN pub400.com(IP address) and press Enter.
- Open the DOS prompt and start FTP file transfer by typing FTP pub400.com(IP address) and press Enter. You can opt either 3rd or 4th step (anyone).
- In the IBM i(AS400) login prompt, type your IBM i (AS400) Userid and password to log in to the IBM i(AS400) FTP Server.
- Once logged in, type binary or bin to enter into the binary mode and press Enter.
- For Uploading IBM i (AS400) library, type
- Restore library/objects from the save file using the RSTLIB or RSTOBJ commands.
or
send desktop\\savf1.lib /qsys.lib/easyclass1.lib/savf1.savf
or
put desktop\\savf1.lib /qsys.lib/easyclass1.lib/savf1.savf
Live Demo of Uploading IBM i (AS400) library/objects saved in a save file using FTP
(c) Microsoft Corporation. All rights reserved. C:\\Users\\Asus>ftp ftp> open pub400.com Connected to pub400.com. 220-QTCP at PUB400.COM. 220 Connection will close if idle more than 1666 minutes. 501 OPTS unsuccessful; specified subcommand not recognized. User (pub400.com:(none)): easyclass 331 Enter password. Password: 230 EASYCLASS logged on. ftp> bin 200 Representation type is binary IMAGE. ftp> send desktop\\savf1.lib /qsys.lib/easyclass1.lib/savf1.savf 200 PORT subcommand request successful. 150 Sending file to member SAVF1 in file SAVF1 in library EASYCLASS1. 226 File transfer completed successfully. ftp: 14146176 bytes sent in 20.70Seconds 683.46Kbytes/sec. ftp> put desktop\\savf1.lib /qsys.lib/easyclass1.lib/savf1.savf 200 PORT subcommand request successful. 150 Sending file to member SAVF1 in file SAVF1 in library EASYCLASS1. 226 File transfer completed successfully. ftp: 14146176 bytes sent in 30.11Seconds 469.77Kbytes/sec. ftp>