Use File Transfer Protocol (FTP) client subcommands to establish a connection with a remote FTP server, navigate libraries and directories, create and delete files, and transfer files.
File Transfer Protocol (FTP) subcommands instruct the FTP client to transfer files from one computer to another. With FTP client subcommands, you can establish a connection with a remote FTP server, navigate libraries and directories, create and delete files, and transfer files.
You can access descriptions about client subcommands and their syntax from the following topics.
The iSeries™ FTP client uses these subcommands. The following table identifies client subcommands, the abbreviations, and a description of each subcommand.
Subcommand | Meaning |
---|---|
? | Describes how to use FTP |
ACCT | Sends a user's account information to a remote system |
APPEND | Adds a local file member to file on a remote system |
ASCII | Sets the file transfer type to ASCII format |
BINARY | Sets the file transfer type to BINARY format |
CD | Changes the working directory on remote system |
CDUP | Changes to the parent directory on remote system |
CLOSE | Ends a session with the remote system |
DEBUG | Turns debugging on or off |
DEBUG | Changes client time-out values |
DELETE | Deletes a file on the remote system |
DIR | Displays directories and files on the remote system |
EBCDIC | Sets the file transfer type to EBCDIC format |
GET | Copies a file from the remote to a local system |
HELP | Gets information about FTP client subcommands |
LCD | Changes the working directory on local system |
LOCSITE | Specifies local site information |
LOCSTAT | Displays local status information |
LPWD | Displays the working directory on local system |
LS | Lists the names of files in a file set on remote system |
LTYPE | Specifies the file transfer type on the local system |
MDELETE | Deletes multiple files on the server system |
MGET | Copies file or files from the remote system |
MKDIR | Creates a directory or subdirectory |
MODE | Specifies a data format for file transfer |
MPUT | Sends local file or files to the remote system |
NAMEFMT | Specifies a file naming format to use |
NOOP | Checks for a response |
NULLFLDS | Allows for NULL fields |
OPEN | Connects to an FTP server |
PASS | Sends a user's password |
PUT | Copies a local file member to remote system |
PWD | Displays the current directory of remote system |
QUIT | Ends an FTP session |
QUOTE | Sends a subcommand to an FTP server |
REINITIALIZE | Re-starts a session on a remote system |
RENAME | Renames a file on a remote system |
RESET | Clears the server reply queue |
RMDIR | Removes a directory on the remote system |
SECDATA | Specifies the protection level used for the data connection when there is a secure connection established with an FTP server |
SECOPEN | Opens a secure control connection to an FTP server using the specified security protocol |
SENDPASV | Specifies whether a PASV subcommand is sent |
SENDPORT | Specifies whether a PORT subcommand is sent |
SENDSITE | Specifies whether a SITE subcommand is sent |
SITE | Sends information for use by a remote system |
STATUS | Gets status information from a remote system |
STRUCT | Specifies the file structure of data being sent |
SUNIQUE | Controls file replacement |
SYSCMD | Runs a CL command on a local system without quitting FTP |
SYSTEM | Displays the OS on the remote system |
TYPE | Specifies the file transfer type |
USER | Sends a user ID to a remote system |
VERBOSE | Controls the display of FTP server replies |