QUOTE (Send a Subcommand to an FTP Server)

FTP client subcommand

QUOTE string

string
The server subcommand you want sent to and interpreted by the remote FTP server. The FTP server sends the string verbatim to the remote FTP server.
Notes:
  1. The client requires the QUOTE subcommand to run the special iSeries™ FTP server subcommand RCMD (Send a CL Command to an FTP Server System). For example, to write the server job log to a spooled file, enter this:
     QUOTE RCMD DSPJOBLOG

    You can use WRKSPLF to access the job log. Note that you will need to specify the user profile of the user who logged in to the FTP server if the WRKSPLF is run from a different user profile.

  2. iSeries FTP server limits the string to 1000 characters.
  3. For the QUOTE subcommand, whatever you enter passes on to the server. For example, if you enter:
    QUOTE CWD 'SYS1'

    The server receives

    CWD 'SYS1'

You can get help information from the server by typing this:

QUOTE HELP

The server sends the HELP subcommand to the remote host, which returns a display of all subcommands it supports. The information displayed varies depending on the type of remote host.

It should be noted that server subcommands entered with the QUOTE subcommand only affect the server, but similar client subcommands might affect both the client and the server. For example, the REIN client subcommand sends the server a REIN server subcommand plus reinitializes certain client state variables. QUOTE REIN sends only REIN to the server, but does not change any client state variables.

Note: Be careful when using the QUOTE subcommand to directly enter server subcommands so that unintended results do not occur. Typically, use the QUOTE subcommand for special situations that cannot use other client subcommands. An example of this is when one wants to use one of the special iSeries server subcommands like CRTL.
Related concepts
Server timeout considerations
Related reference
HELP (Getting Help for FTP Subcommands)
RCMD (Send a CL Command to an FTP Server System)
WRKSPLF
File Transfer Protocol client syntax conventions
File systems and naming conventions