MGET (Copy Multiple Files from a Remote System to the Local System)

FTP client subcommand

How MGET transfers files:

To copy one or more remote files, use the MGET FTP client subcommand in this format. A separate GET subcommand is executed for each remote file you want transferred. The server creates the name of the corresponding local file automatically as determined by the Default Naming rules.

The MGET FTP client subcommand uses the following process to determine where to put files.

MGet {remotefile
[remotefile...]}[(Replace]

remotefile
The file or files you want to retrieve from the remote system.
( Replace
Overwrites an existing file on your local system. If the file already exists on your local system and you do not use the Replace option, the existing file is not overwritten. The name of the local file where the remotefile is copied is created automatically.

You can use an asterisk (*) to copy all members in a file to your current library or directory. For example, if the remote system is an iSeries™,

Related reference
GET (Copy a File from a Remote System to the Local System)
File Transfer Protocol client syntax conventions
MPUT (Send Multiple File Members from the Local System to a Remote System)
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