Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to start a Job automatically at a predefined time

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
die7nadal

Active User


Joined: 23 Mar 2005
Posts: 156

PostPosted: Wed Mar 23, 2005 4:02 am    Post subject: How to start a Job automatically at a predefined time
Reply with quote

I want to Release a Job automatically at a predefined time, using MVS commands
I have a JES2 command
/*$TA,T=15.00,'$VS,"$A,B683NC2"'
that my friend suggested, but this doesn't work, I want to know if its syntactically correct.
Any form of help will be appreciated, if you have already discussed in the forum please provide the link.
Back to top
View user's profile Send private message

Prandip

New User


Joined: 04 Mar 2005
Posts: 85
Location: In my tiny cubicle ...

PostPosted: Wed Mar 23, 2005 8:07 am    Post subject: Re: How to start a Job automatically at a predefined time
Reply with quote

Here is the link to the "z/OS V1R5.0 JES2 Commands" manual:


http://publibfp.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/has2a240/CCONTENTS

and yes, your syntax does appear correct.
Back to top
View user's profile Send private message
Ashish Bharatiya

New User


Joined: 23 Mar 2005
Posts: 5
Location: Mumbai

PostPosted: Wed Mar 23, 2005 1:49 pm    Post subject: Re: How to start a Job automatically at a predefined time
Reply with quote

Prandip wrote:
Here is the link to the "z/OS V1R5.0 JES2 Commands" manual:


http://publibfp.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/has2a240/CCONTENTS

and yes, your syntax does appear correct.


Hi,

I wanted to know if I have submitted a job using TYPRUN=HOLD and want to release the same for execution depending on the output of a previous job, what should I quote in the previous job so as to start the execution of the HOLD job.

Thanx
Back to top
View user's profile Send private message
die7nadal

Active User


Joined: 23 Mar 2005
Posts: 156

PostPosted: Wed Mar 23, 2005 10:30 pm    Post subject: Re: How to start a Job automatically at a predefined time
Reply with quote

Ashish,
If you want a number of Jobs successivley u can code this step
at the end of each job, where "MNT7.VANANDA.SVO.CMPJCL(B504)" contains my next JOB to run.

//CB504 EXEC PGM=IKJEFT1B,DYNAMNBR=99
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
SUB 'MNT7.VANANDA.SVO.CMPJCL(B504)'
//*

If you want to run a Job successively based on the CC of a previous JOB
Use
//TESTE37 IF (JS10.ABENDCC=SE37) THEN
//*
//CB504 EXEC PGM=IKJEFT1B,DYNAMNBR=99
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
SUB 'MNT7.VANANDA.SVO.CMPJCL(B504)'
//*
// ELSE
//*
//CB504 EXEC PGM=IKJEFT1B,DYNAMNBR=99
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
SUB 'MNT7.VANANDA.SVO.CMPJCL(B504)'
//*
//*
//TESTE37E ENDIF
Back to top
View user's profile Send private message
Ashish Bharatiya

New User


Joined: 23 Mar 2005
Posts: 5
Location: Mumbai

PostPosted: Thu Mar 24, 2005 2:05 pm    Post subject: Re: How to start a Job automatically at a predefined time
Reply with quote

Hi,
I tried using your code but couldn't submit the job. Below I have given my code which I have used for testing.

//TESTJOBA JOB (RFNA-CUSTSRP,TEST),'COPY GDG BASE',CLASS=Q,
// MSGCLASS=X
//*JCL TO COPY MULTIPLE VERSIONS OF A GDG INTO A FLATFILE.
//STEP002 EXEC PGM=IDCAMS
//SYSIN DD *
SET MAXCC=8
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//*
//TESTE37 IF (STEP002.RC=8) THEN
//STEP003 EXEC PGM=IKJEFT1B
//SYSIN DD *
SUB 'G1CS00AT.TEST.JCL(TESTJOBB)'
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
//TESTE37E ENDIF

Also if you can provide any documentation for IKJEFT1B will be of great help.

Thanx.
Back to top
View user's profile Send private message
die7nadal

Active User


Joined: 23 Mar 2005
Posts: 156

PostPosted: Thu Mar 24, 2005 9:48 pm    Post subject: Re: How to start a Job automatically at a predefined time
Reply with quote

I dont have any documentation for IKJEFT1B

If you have used the below JCL it will not work b'cos the INSTREAM data should be present in //SYSTSIN DD and not in //SYSIN DD, try giving that in //SYSTSIN DD and if it still didnt work let me know the error u are getting.

STEP003 EXEC PGM=IKJEFT1B
//SYSIN DD *
SUB 'G1CS00AT.TEST.JCL(TESTJOBB)'
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
Back to top
View user's profile Send private message
Ashish Bharatiya

New User


Joined: 23 Mar 2005
Posts: 5
Location: Mumbai

PostPosted: Mon Mar 28, 2005 10:11 am    Post subject: Re: How to start a Job automatically at a predefined time
Reply with quote

Thanx die7nadal
I was able to submit my job..


Regards,
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Full Time COBOL Software Development ... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:24 am
No new posts CICS transaction slow response time vasanthz All Other Mainframe Topics 2 Thu Jan 19, 2017 1:31 am
No new posts DD DUMMY & CPU TIME Nileshkul Testing & Performance analysis 16 Mon Dec 19, 2016 11:35 pm
No new posts CICS START AND CANCEL blayek CICS 1 Wed Dec 07, 2016 3:27 am
This topic is locked: you cannot edit posts or make replies. Get a job submitted itself every time... arunsoods JCL & VSAM 3 Tue Nov 22, 2016 4:05 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us