"SITE" command equivalent

Discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
SteveWoods
Posts: 3
Joined: Thu Feb 27, 2014 4:51 pm

"SITE" command equivalent

Post by SteveWoods »

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
dovetail
Site Admin
Posts: 2025
Joined: Thu Jul 29, 2004 12:12 pm

Re: "SITE" command equivalent

Post by dovetail »

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:

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
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.
Post Reply