You can end an FTP session and return to the DCL prompt by
entering the EXIT, quit, or bye commands or by pressing Ctrl/Z.
The following examples close a connection with the remote host
and exit FTP.
FTP> EXIT
221 Goodbye.
$
FTP> quit
221 Goodbye.
$
To close a connection and remain at the FTP prompt, use the
DISCONNECT or close command.
1 – Examples
The following examples show how to close a connection, if one is
open, and remain at the FTP prompt for you to continue using FTP.
FTP> DISCONNECT
221 Goodbye.
FTP>
FTP> CLOSE
221 Goodbye.
FTP>