Use the DATATIMEOUT statement to specify the length of time to wait for the send to complete before the connection is aborted.
.-DATATIMEOUT 300------. >>-+----------------------+------------------------------------>< '-DATATIMEOUT--seconds-'
Specifying 0 indicates no timeout value is used, and the transfer does not time out.
DATATIMEOUT 30
The DATATIMEOUT timer is set when the FTP server does a send() or recv() call to TCP/IP or when a passive data connection is detected, and the server must wait for the client to complete the session. If the process does not complete within the timer value, the connection is aborted.