TCPIP$FTP_HELP.HLB  —  ENABLE  PORT_COMMAND
    Enables or disables the sending of the FTP protocol PORT command
    to the remote host.

    By default, FTP sends a PORT command when establishing a
    connection. If this command fails, FTP uses the default data
    port (20).

    Disable the sending of the PORT command when you communicate with
    remote hosts that ignore PORT commands.

    Default: ENABLE PORT_COMMAND.

    DCL Format

      ENABLE PORT_COMMAND

      DISABLE PORT_COMMAND

    UNIX Format

      sendport

1  –  Example

  FTP> ENABLE PORT_COMMAND
  FTP> PUT CODE.TXT
  200 PORT command successful
  150 Opening data connection for CODE.TXT (130.180.10.8,1182)
  226 Transfer complete
  local: DISK$PROJECT6:[MANAGEMENT]CODE.TXT;9  remote: CODE.TXT
  3634 bytes sent in 00:00:00.04 seconds (88.72 Kbytes/s)

      FTP enters a PORT command before the file transfer.
Close Help