We use FTP to send "trigger" files to our Z/OS mainframe which effectively tells the job scheduler (ZEKE) to start executing a certain job. The FTP "SITE" command is required to do this. How do we do this using sFTP since it doesn't appear that the "SITE" command is available? JES picks up the file named XXXTEST1.JCL and executes it which in turn executes a scheduler command. See below example of an FTP that does this.
OPEN MAINFRM.ADDRESS.NET
--LOGIN ID---
--PASSWORD--
CD ..
QUOTE SITE FILE=JES
PUT XXXTEST1.JCL
QUIT
"SITE" command equivalent
Re: "SITE" command equivalent
In your example, the FTP SITE command is for turning on FILETYPE=JES.
In Co:Z SFTP, you can submit and work with JES jobs and output by using the //-JES pseudo dataset prefix.
For more information, see: http://dovetail.com/docs/sftp/using.html#server_jes
So, for example:
In this example, the local file "my.jcl" is submitted as a job to the JES internal reader for execution.
"myjob" is a handle that can be used in the same script to reference the job.
In Co:Z SFTP, you can submit and work with JES jobs and output by using the //-JES pseudo dataset prefix.
For more information, see: http://dovetail.com/docs/sftp/using.html#server_jes
So, for example:
Code: Select all
(connect your remote SFTP client to Co:Z SFTP on z/OS)
ls /+mode=text
cd //-JES.INTRDR
put my.jcl myjob
ls -al
quit
"myjob" is a handle that can be used in the same script to reference the job.