SECData (Setting Data Security Protection)

FTP client subcommand

To specify the protection level to be used for the data connection when there is a secure control connection already established with the remote system, use the SECData subcommand as follows:

SECData [ C | P ]

Note: SData is a synonym for this subcommand.
C
Data channel protection level is set to 'clear'. This connection is not secure. This might be used for pre-encrypted data or non-sensitive data.
P
The data channel protection level is set to 'private'. This connection is secure. A Transport Layer Security (TLS) negotiation between the client and the server must take place before any data is transmitted over the connection.
  1. When no parameter is specified, SECData displays the present value used for setting data security protection.
  2. The data protection level is initially set to the value specified by the DTAPROT parameter of the STRTCPFTP CL command when a secure control connection is established with an FTP server.
  3. A secure control connection is required to use the SECData subcommand.
  4. A PROT server subcommand is issued to the server each time the SECDATA subcommand successfully sets the data protection level.
  5. The SECData subcommand sends a PBSZ and a PROT subcommand to the server when setting the data protection level. Also, the SECData subcommand sets a client variable for each successful PROT subcommand. This variable represents the last data protection level (C or P) accepted by the server. This variable is used to set the data protection level when the SECOpen subcommand opens a secure control connection. This variable can be changed using the LOCSITE DTAPROT option.
  6. The parameters 'C' and 'P' for the SECData subcommand are the same as used by the PROT server subcommand.
Related concepts
Secure the FTP client with Transport Layer Security or Secure Socket Layer
Related reference
LOCSITE (Specify Local Site Information)
File Transfer Protocol client syntax conventions