submitting JES INTRDR job

Discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
sftp
Posts: 10
Joined: Thu Feb 09, 2012 6:51 pm

submitting JES INTRDR job

Post by sftp »

Hi,

I want to submit my job through JES.INTRDR from Windows to Z/OS. Please provide some information on the below scripts before i execute in windows.

Connected to zos.
sftp> cd //-jes.intrdr
sftp> ls /+mode=text
/+mode=text
sftp> put JCL.txt XYZJOB
Uploading JCL.txt to //-JES.INTRDR/XYZJOB
JCL.txt 100% 195 0.2KB/s 00:00
sftp> quit

I have written the JCL in mainframe as ABCD.SFTP.JCL in a flat/PS file. If the above scipt is going to work in Windows, then could you please tell me exact format of the JCL needs to supply first, whether it needs to be in EBCDIC or ASCII or windows folks will change the file extension into ABCD.SFTP.JCL.txt in their location ?
I actually want to provide the jcl which i have written in mainframe and want to submit through JES INTRDR from Windows.
coz
Posts: 392
Joined: Fri Jul 30, 2004 5:29 pm

Re: submitting JES INTRDR job

Post by coz »

The JES job submission feature of Co:Z SFTP uses the put command to transfer JCL from a workstation and submit to the internal reader. Submission from an existing dataset is not supported.

So if you want to submit a job from a remote system, the JCL must be present on your workstation. You can transfer the JCL from ABCD.SFTP.JCL to your workstation as follows:

Code: Select all

sftp> ls /+mode=text 
/+mode=text 
sftp> get //ABCD.SFTP.JCL JCL.txt 
Once it's on your workstation, it will be in ASCII (because you set mode=text above) - you can edit it directly on you workstation if would like. Then you can submit it to the internal reader using the code you posted above.
sftp
Posts: 10
Joined: Thu Feb 09, 2012 6:51 pm

Re: submitting JES INTRDR job

Post by sftp »

Hi,

I ran the scripts as you mentioned earlier but i am facing error while running the job through internal reader

ls /+mode=text,lrecl=600,recfm=fb
put D:\TESTFile.txt //XYZ.ABC.N.TEST(+1)
ls /+mode=text
get //XYZ.TEST.JCL JCL.txt (the JCL.txt stored in the Windows server location C:\XYZ\Attachmate\Reflection\.ssh\JCL.txt)
cd //-jes.intrdr
ls /+mode=text
put JCL.txt XYZJOB (Error: Could not open file: Failure)
quit

Please guide me to run the jobs.
dovetail
Site Admin
Posts: 2025
Joined: Thu Jul 29, 2004 12:12 pm

Re: submitting JES INTRDR job

Post by dovetail »

So, there was some server problem on this command:

put JCL.txt XYZJOB
(Error: Could not open file: Failure)

The SFTP protocol doesn't have a way to send detailed/arbitrary error messages, so to see what really happened you have to look at the Co:Z SFTP session log for this session.

We have made this easy to do however. You can simply download a special file name in the same session (after you get the error) to get the error log contents:

get /+error.log

For more information: http://dovetail.com/docs/sftp/using.htm ... _error_log

If the information in the log doesn't point you to a solution, please post the contents (after scrubbing anything confidential) and we'll take a look.
sftp
Posts: 10
Joined: Thu Feb 09, 2012 6:51 pm

Re: submitting JES INTRDR job

Post by sftp »

Yes, it was the server problem earlier. I reran the above scripts again and the job has run through internal reader. Thanks for the help.

We actaully run all our Mainframe jobs through ZEKE scheduler. I tried to submit one of the ZEKE test job though jes intrdr using Co:z but not able to run. It's giving me error that you can not run the ZEKE job. when i run the user test job , it successfully ran through jes interdr using Co:Z. Is it possbile to submit the scheduler jobs through jes intrdr using Co:z ? If yes, could you please give some examples.It will help me on the automation process of file transmission.
dovetail
Site Admin
Posts: 2025
Joined: Thu Jul 29, 2004 12:12 pm

Re: submitting JES INTRDR job

Post by dovetail »

Co:Z SFTP allows you to submit a job to JES through the internal reader.

I am not familiar with ZEKE - perhaps there is a way to submit a ZEKE scheduled job through the internal reader - either a special SAF/RACF permission or a utility program? You should check with your systems programmer or vendor support.
Post Reply