Use the MYOPENTIME statement to specify the amount of time the FTP client waits for a session to open before terminating the attempt and reporting an error.
.-MYOPENTIME 120------. >>-+---------------------+------------------------------------->< '-MYOPENTIME--seconds-'
MYOPENTIME 60 ; wait 60 seconds
See the FTP command and the FTP environment information in z/OS Communications Server: IP User's Guide and Commands.