To specify whether or not to send a PASV subcommand to the FTP server when doing a data transfer or issuing the DIR and LS subcommands, enter the SENDPASV FTP client subcommand:
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:
iSeries™ default (on) is to send the PASV subcommand. When SENDPASV is off, then the server 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 cannot be able to establish a data connection to the FTP server.
After the client has issued a data transfer or list directory subcommand, then 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.