If you want to transfer several files to the remote host, the MPUT subcommand may
be used to do this:
mput libm01/filem01.*
The subcommand MPUT sends multiple file members to the remote host. The
MPUT subcommand copies all members in the file FILEM01 in library LIBM01 to file
FILEM01 in the current library of the remote host. The local file name is required,
but the library name may be omitted. If the library name is not specified, the local
user’s current library is used. If the member name is not specified, the file name is
used as the member name
Note that it is not possible to specify the library name at the remote host on the
MPUT command itself. The remote user’s current library is used. This is set
automatically to the one specified in the user’s profile at sign-on time. The PWD
subcommand may be used to determine the current library.The CD subcommand
may be used to change it, as shown in Figure 152, prior to issuing the MPUT
command.
Note: On other systems, the current library may be called the current directory.
If an existing remote file and member name are specified, the old member may be
replaced or a new member may be written depending on the setting of the
SUNIQUE option. When FTP is started, this option is set off. The option can be
toggled on and off by the SUNIQUE subcommand as shown in Figure 153on
page 247.
When SUNIQUE is off, the old member is replaced. When SUNIQUE is on, a new
file member is created. The name of the new member is the same as was
specified, but the name has a sequence number that is appended to the end.
Note: The SUNIQUE option setting controls what server subcommand is used
when a PUT or MPUT client subcommand is entered. The subcommands are
sent from the client host to the server host and are run on the server. The
server subcommands are STOR and STOU:
vThe STOR subcommand causes the remote file (member) to be overwritten if the
file already exists. STOR is sent to the server by the client when the
subcommands PUT of MPUT are run and SUNIQUE is set off.
File Transfer Protocol
Previous FTP subcommands and messages:
> PWD
257 "QGPL" is current library.
> CD ITSOLIB1
250 Current library changed to ITSOLIB1.
Enter an FTP subcommand.
===>
F3=Exit F6=Print F9=Retrieve
F17=Top F18=Bottom F21=CL command line
Figure 152. FTPDetermine and Change Server’s Current Library
246 OS/400 TCP/IPConfiguration and Reference V4R4