I'm trying to send a JCL from Unix to Mainframes using SCP. The current process uses FTP to achieve this.
There are 2 parts to the process in our current environment using FTP
1) Transfer file from Unix to MVS dataset
2) Send JCL to JES Internal reader to trigger futher job
I have been able to do the first one using SCP.
For the second part i.e. sending JCL to JES through SCP, not able to find comparable command.
Current sample used with FTP:
QUOTE SITE FILETYPE=JES
The .TXT file is the JCL to be submitted.
Could anyone suggest how to do this with SCP or any pointers to some documents?
- Copying from the z/OS UNIX file system to a PDS: ssh email@example.com "cp ssh.log \"//’USER.SSH.LOG(LOG1)’\" "
- Copying from the z/OS UNIX file system to a sequential data set: ssh firstname.lastname@example.org "cp ssh.log \"//’USER.SSH.LOG2’\" "
As can be seen, these are used to copy PDS member or sequential data set to MVS.
Like FTP has following way to send to Z/OS internal reader like
And then firing put command sends it to internal reader.
Is there similar command through SSH where it can transfer to JES?