I want to down load a file from Mainframes to my PC. As I know that, I can very well do this using SEND/RECEIVE option of the Emulator.
I would like to do the same using my own JCL . I read from this form REXEC can do this but no example jcl was given. Can some body help me with a jcl and with the necessary parameters.
Joined: 26 Apr 2004 Posts: 4650 Location: Raleigh, NC, USA
uma, I don't personally know much about REXEC, since I've never seen it used anywhere. So, I took a look at the "z/OS V1R6 Communications Server IP Reference" guide. According to the manual, the REXEC command is used to initiate a command on the remote system, with the results returning to the calling terminal. It says nothing about the capability to transfer data (other than the returning messages), but I suppose it could be used to initiate an FTP command at the remote system. According to the manual, to use REXEC in batch, you simple just repeat the same command string you would use in a TSO session in a batch TSO session.
The format of the REXEC command is:
rexec -d -l user-id -p password -s port remote-hostname command