The SENDPASV i5/OS® FTP client subcommand specifies whether to send a PASV subcommand to the FTP server when you transfer data or issue the DIR and LS subcommands.
SENDPAsv [ 0 | 1 ]
If there is no parameter SENDPASV works like a toggle switch. The SENDPASV value toggles from 1 (ON) to 0 (OFF) or from 0 to 1.
When there is a parameter, the valid values are:
The default (on) is to send the PASV subcommand. When SENDPASV is off, the FTP client does not send the PASV subcommand.
When connected to an FTP server through a SOCKS server, you can only use the SENDPASV subcommand before you issue a data transfer subcommand or a list directory subcommand. If you use SENDPASV after one of these subcommands, then the client is not able to establish a data connection to the FTP server.
After the client has issued a data transfer or list directory subcommand, close the connection to the FTP server through a SOCKS server before you issue SENDPASV again.
You can use the SENDPASV subcommand when the FTP client is disconnected from an FTP server.