APPEND (Append a Local File Member to a Remote File)

FTP client subcommand

To add a local file member, document, or other file system file to a remote file, use the APPEND FTP client subcommand in this format:

Append localfile [remotefile]

localfile
The name of the local file member, document, or other iSeries™ file. The name of the hierarchical file system (HFS) file added to a directory on the remote system.
remotefile
The file on the remote system. If you do not enter a remote file, the FTP client creates a default name.

If the remote file does not exist on the server, the FTP server creates it.

To add a file on the remote system, you must have write privileges to it. You might need to supply the appropriate account information by using the ACCT subcommand (see ACCT (Send Account Information)).

The default file copy mode is stream. You may need to change this by using the MODE subcommand. In the case of fixed-record format in the remote file, the server preserves the file format and record length of the remote file. Records from the local file member shorten or include blanks when necessary.

Related reference
NAMEFMT (Select File Naming Format)
File names for client-transfer subcommands
ACCT (Send Account Information)
File Transfer Protocol client syntax conventions
Naming files for transfer