Naming files for transfer

The FTP client subcommands that you use for transferring data can have a localfile parameter, a remotefile parameter, or both. You can use these parameters to name the data you want to transfer.

The transfer subcommands are:

  • APPEND localfile [remotefile]
  • DELETE remotefile
  • GET remotefile [localfile]
  • MDELETE remotefiles
  • MGET remotefiles
  • MPUT localfiles
  • PUT localfile [remotefile]

The names for the localfile and remotefile parameters can be either partially qualified or fully qualified. A partially-qualified name includes the name of the data itself as well as one or more names in the hierarchical sequence above the data. A fully-qualified name includes all names in the hierarchical sequence above the data.

When the name is partially qualified, the current working directory identifies the file to be processed. You can set the working directory on the local client system with the LCD subcommand. You can set the working directory on the remote server system with the CD subcommand.

The format of the localfile parameter names must conform to IBM® i file naming rules. The remotefile parameter names must adhere to the file naming rules of the remote system.

More details on syntax:

  • Enclosing subcommand parameters: You can use either a single quotation mark (') or quotation marks (") to enclose parameters.
  • Default file names for client transfer subcommands: Link to this information about default file names for client transfer subcommands.
  • FTP client syntax conventions: FTP client subcommands make use of these syntax conventions.