As John said, through FTP, Write a JCL with jobtype = JES and send it
across:
FTP Command to execute the commands from script/file is:
ftp -n -i YourMainframeIP < ScriptFileTOSubmitJob >> LogFile
ScriptFileTOSubmitJob (a text file)
============================
user YourUserID YourPassword
quote site filetype=jes
put FileHavingYourJCL
bye
============================
<<The JCL (in file FileHavingYourJCL) will be submitted IF the ftp-login ID
has got authorisation to do so.
But then, especially in production, it is not really right to submit *any*
JCL from *anywhere* other than the pre-approved, scheduled ones. One option
for this could be
to use ETT( Event Triggered Tracking). The basic sequence goes something
like (I'm not sure whether that this
solution applies only to OPC + TWS {on M/f scheduling} - better ask your
production team):
1. Define a resource on Mainframe - RES1 - please ask scheduling team to do
this.
2. Define a schedule on Mainframe for you job (say JOB1)- that should be
triggered only when the resource RES1 is available - pelase ask
scheduling team.
3. Now, submit a JCL (something like JCL1 shown below )through FTP - to make
RES1 available. So, the JOB1 - your job on Mainframe could be triggerred as
soon as RES1 is available.
JCL1
//xxxxxxx JOB XXXX,'XXX',CLASS=X,
// REGION=XXM etc.etc.
//XXXXX EXEC PGM=EQQEVPGM
//EQQMLIB DD DSN=SYS1.IBM.ISPMLIB,DISP=SHR
//EQQMLOG DD SYSOUT=*
//SYSIN DD *
SRSTAT 'RES1' SUBSYS(XXXX) AVAIL(YES)
/*
Yogesh.
On 1/27/08, John S. Giltner, Jr. <[EMAIL PROTECTED]> wrote:
>
> [EMAIL PROTECTED] wrote:
> > hi! could u plz tell me how to creat JCL on unix server to execute on
> > the mainframe server everyday...plz reply as soon as
> > possible .......it urgent
>
> If you know what the JCL is supposed to look like you can just create a
> text file with the JCL in it. If it is setup an you are authorized, you
> can use ftp to ftp the JCL to z/OS (I am assuming z/OS here) with a
> filetype set to JES. Just use CRON to execute a script to do the ftp.
>
> However, I would suggest that you get the JCL setup on the z/OS side and
> use z/OS automation or scheduling packages to run the job.
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
> Search the archives at http://bama.ua.edu/archives/ibm-main.html
>
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html