The MGET command copies all the file members (MEMB1,MEMB2,MEMB3) in file
QCLSRC in library ITSOLIB1 at the remote host. These file members are copied to
identically named members in file QCLSRC in the current library at the local host.
Figure 154 and Figure 155 show an example of an MGET display session.
The remote file name is required, but the library name may be omitted. If the library
name is not specified, the remote user’s current library is used.
File Transfer Protocol
Previous FTP subcommands and messages:
> mget ITSOLIB1/qclsrc.*
200 PORT subcommand request successful.
125 List started.
250 List completed successfully.
250 Now using naming format "0".
257 "QGPL" is current library.
200 PORT subcommand request successful.
150 Retrieving member MEMB1 in file QCLSRC in library ITSOLIB1.
250 File transfer completed successfully.
13 bytes transferred in 1.297 seconds. Transfer rate 0.010 KB/sec.
200 PORT subcommand request successful.
150 Retrieving member MEMB2 in file QCLSRC in library ITSOLIB1.
250 File transfer completed successfully.
Enter an FTP subcommand.
===> mget ITSOLIB1/qclsrc.*
F3=Exit F6=Print F9=Retrieve
F17=Top F18=Bottom F21=CL command line
Figure 154. MGET Subcommand—Display 1
File Transfer Protocol
Previous FTP subcommands and messages:
257 "QGPL" is current library.
200 PORT subcommand request successful.
150 Retrieving member MEMB1 in file QCLSRC in library ITSOLIB1.
250 File transfer completed successfully.
13 bytes transferred in 1.297 seconds. Transfer rate 0.010 KB/sec.
200 PORT subcommand request successful.
150 Retrieving member MEMB2 in file QCLSRC in library ITSOLIB1.
250 File transfer completed successfully.
49 bytes transferred in 1.304 seconds. Transfer rate 0.038 KB/sec.
200 PORT subcommand request successful.
150 Retrieving member MEMB3 in file QCLSRC in library ITSOLIB1.
250 File transfer completed successfully.
49 bytes transferred in 1.239 seconds. Transfer rate 0.040 KB/sec.
Enter an FTP subcommand.
===>
F3=Exit F6=Print F9=Retrieve
F17=Top F18=Bottom F21=CL command line
Figure 155. MGET Subcommand—Display 2
248 OS/400 TCP/IP Configuration and Reference V4R4