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

FTP client subcommand

To send one or more local files to the remote system, use the MPUT FTP client subcommand. The client executes a separate PUT subcommand for each local file you want transferred. 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.
Note: 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 an iSeries™, see NAMEFMT (Select File Naming Format). This example uses NAMEFMT 0:

 MPUT MYLIB/FILE1.MBR1 MYLIB/FILE1.MBR2

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

This example uses NAMEFMT 1:

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

This 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.

Related reference
GET (Copy a File from a Remote System to the Local System)
SUNIQUE (Control Overwriting of Files)
MGET (Copy Multiple Files from a Remote System to the Local System)
File Transfer Protocol client syntax conventions
PUT (Copy a File Member from the Local System to a File on a Remote System)
File names for client-transfer subcommands
Naming files for transfer