I'm utilizing the TCPIP/FTP feature of submitting JCL remotely through ftp
when in JES mode on z/OS. I'm using Object Rexx to automate the process from
I'm using rxftp to ftp,
1. put my job.jcl file on the remote system
2. switch to jes mode
3. and to submit and retrieve the job output the command is: GET job.jcl
The problem is after I issue the GET command it triggers a timer that waits
120 seconds. If the server doesn't return within 120 seconds the ftp
connection terminates. Most of the jcl jobs I'm running run for 10-15
Is there a way I can increase the timer? So it waits longer than two minutes
to hear back from a remote host before assuming it lost connection?
I was looking into using SockSetSockOpt to adjust the SO_RECVTIMEO but it
requires the socket.
Here's a code snippet:
If RxFuncQuery('FtpDropFuncs') then Do
rc = RxFuncAdd('FtpLoadFuncs', 'rxftp', 'FtpLoadFuncs')
rc = FtpLoadFuncs()
rc = FtpSetUser(host, user, pw)
/* start issuing FTP commands */
Does FtpSetUser open up a socket under the covers? If so, is there a way to
get it and pass it into SockSetSockOpt?
Any sort of help would be very appreciated. Bear with me, I'm a novice when
it comes to REXX.