Downloading an IBM i Library or Objects using FTP

This article discusses the steps to download IBM i (AS400) library or object using File transfer protocol (FTP)
Downloading an IBM i AS400 Library or Objects through FTP File Transfer Protocol, ftp, file transfer protocol, ftp in as400, ftp in ibmi, download save file using ftp on ibmi As400, downlaod library and objects using ftp on ibmi, SAVLIB,savobj, CRTSAVF,DOS, RUN, CMD, command prompt, open, recv, get ftp commands on dos,bin, ibmi, iseries, systemi, as400, as400 and sql tricks, ftp using command propmt from ibmi as400, steps to downlaod save file from ibmi using ftp
Downloading an IBM i AS400 Library or Objects through FTP File Transfer Protocol

Listed below the following steps to download the IBM i(AS400) library or objects through FTP (File Transfer Protocol).

Download steps:

  1. Create the save file on IBM i (AS400) using CRTSAVF command.
  2. CRTSAVF FILE(EASYCLASS1/SAVF1)
  3. Save the full library using SAVLIB (Save Library) command or save required objects from the single library using SAVOBJ (Save Object) command.
  4. The basic SAVLIB command is as follows:
    SAVLIB LIB(EASYCLASS1)       
           DEV(*SAVF)         
           SAVF(EASYCLASS1/SAVF1) 
           TGTRLS(*CURRENT)    
    
    The basic SAVOBJ command is as follows:
    SAVOBJ OBJ(*ALL)            
           LIB(EASYCLASS1)         
           DEV(*SAVF)           
           SAVF(EASYCLASS1/SAVF1)  
           TGTRLS(*CURRENT)       
    
  5. 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.
  6. or

  7. 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).
  8. 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.
  9. Once logged in, type binary or bin to enter into the binary mode and press Enter.
  10. For downloading IBM i (AS400) library, type
  11. recv /qsys.lib/easyclass1.lib/savf1.savf desktop\\savf1.lib

    or

    get /qsys.lib/easyclass1.lib/savf1.savf desktop\\savf1.lib

Live Demo of downloading IBM i (AS400) library/objects saved in a save file using FTP

Microsoft Windows [Version 10.0.19044.1645]
(c) Microsoft Corporation. All rights reserved.

C:\\Users\\Asus>ftp
ftp>n 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> binary
200 Representation type is binary IMAGE.
ftp> recv /qsys.lib/easyclass1.lib/savf1.savf desktop\\savf1.lib
200 PORT subcommand request successful.
150 Retrieving member SAVF1 in file SAVF1 in library EASYCLASS1.
226 File transfer completed successfully.
ftp: 14146176 bytes received in 28.62Seconds 494.21Kbytes/sec.
ftp> get /qsys.lib/easyclass1.lib/savf1.savf desktop\\savf1.lib
200 PORT subcommand request successful.
150 Retrieving member SAVF1 in file SAVF1 in library EASYCLASS1.
226 File transfer completed successfully.
ftp: 14146176 bytes received in 16.55Seconds 854.65Kbytes/sec.
ftp>

Post a Comment

© AS400 and SQL Tricks. All rights reserved. Developed by Jago Desain