Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Submiting job on mainframe from unix korn shell

Status
Not open for further replies.

amar9

Programmer
Nov 23, 2003
9
US
I would like to SUBMIT A JOB ON MAINFRAME from Unix Korn Shell.

I have a JCL on Mainframe PDS.
Ex:
JCL NAME: STKRPT
PDS NAME: SCH.INVENTORY.JCLS

server name: satbdp1
userid: abcdxyz
password: abcdef1

FrOM Unix kron shell, I would like to submit my jcl
SCH.INVENTORY.JCLS(STKRPT).

I think, I have to put the JCL in JESREADER or INTRDR
on mainframe for JCL SUBMISSION.
If you have any info on how to do this please share the details. Thanks in advance.

===========

ftp -n satbdp1 << EOF
user abcdxyz abcdef1
xxxx put SCH.INVENTORY.JCLS(STKRPT) in JESREADER/INTRDR xxx - needs to be replaced !
EOF
exit




 
Here is the one option to submit a job on mainframe from Unix korn shell.

#!/bin/ksh
ftp -n << EOF
open <servername>
user <userid> <password>
ascii
site file=jes
put <JCLfilename>
quit
EOF

=================

About JCLfilename: This file contains the JCL CODE.

This file should be there in your unix directory
and needs to be mentioned along with put statement.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top