MPUT (Send Multiple File Members from the Local System to a Remote System)

 

The MPUT i5/OS® FTP client subcommand copies multiple local files to the remote system.

 

FTP client subcommand

When you enter the MPUT subcommand, the client runs a separate PUT subcommand for each local file that you want to transfer. The default naming rules create the name of the corresponding remote file.

MPut { localfile [localfile...]}

localfile

Specify one or more local library file system file members or other FTP supported file system files you want transferred to the remote system. The client automatically generates the name given to the file on the remote system.

If the remote file already exists, the contents are replaced by the contents of localfile unless Store Unique (SUNIQUE) is on.

For information as to how to specify the file if the remote system is a System i™ product, see NAMEFMT (Select File Naming Format).

The following example uses NAMEFMT 0:

 MPUT MYLIB/FILE1.MBR1 MYLIB/FILE1.MBR2

The previous example sends members MBR1 and MBR2 of file FILE1 in library MYLIB to the remote system.

The following example uses NAMEFMT 1:

 MPUT /QDLS/QIWSOS2/PCSMENU.EXE /QDLS/QIWSOS2/PCSMENU2.EXE

The previous example sends document PCSMENU.EXE and document PCSMENU2.EXE from folder QIWSOS2 to the remote system.

You can use an asterisk (*) to send all the members in a file. For example, MPUT MYLIB/MYFILE. * transfers all the members of file MYFILE in library MYLIB.