IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to start job at a certain time since no job scheduler


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
coria

New User


Joined: 09 Oct 2006
Posts: 36

PostPosted: Thu Jan 18, 2007 1:53 pm
Reply with quote

eg. Daily: First start Job1 at 2:00 am, after it finished successfully, execute Job2, then execute Job3 at 3:00 am
Monthly: Every first Monday of the month at 10:00 pm, start Job4
*************************************
How to schedule job since no job scheduler?
It would be wonderful if there are some examples.

Thank you!
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Thu Jan 18, 2007 2:05 pm
Reply with quote

Got CICS?
Back to top
View user's profile Send private message
coria

New User


Joined: 09 Oct 2006
Posts: 36

PostPosted: Thu Jan 18, 2007 3:29 pm
Reply with quote

NO, they are batch jobs, can i do that in JCL without using some utilites like JOBTRAC?
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Thu Jan 18, 2007 3:42 pm
Reply with quote

coria wrote:
NO, they are batch jobs, can i do that in JCL without using some utilites like JOBTRAC?
I know they are batch jobs, the question was do you have CICS?
Back to top
View user's profile Send private message
coria

New User


Joined: 09 Oct 2006
Posts: 36

PostPosted: Thu Jan 18, 2007 4:48 pm
Reply with quote

Yes, we have CICS.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Thu Jan 18, 2007 5:10 pm
Reply with quote

If it is up most of the time, it has nice time facilities for a program to be waiting and do the kicking off of jcl as desired.
Kick off the tran during initialization and have it look at some small scheduling file, should be a snap to code.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Jan 18, 2007 5:51 pm
Reply with quote

Other options are to use a facility that provides timer functions (Netview, Automated Operator Consoles, CONNECT:Direct), a Unix crontab, or submit via FTP from another server that has a timer function.

Or, write your own scaled-down version of a job scheduler.
Back to top
View user's profile Send private message
DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Fri Jan 19, 2007 6:12 am
Reply with quote

Check this link out DEADLINE

Please note that I have found that the PRTY must be 0

Code:

//USERXXX JOB (ACCNT,ROOM),USER,       
//      MSGCLASS=Y,NOTIFY=USER,PRTY=0     
//*MAIN DEADLINE=(1510,A,09/19/2006)       
//JS0100 EXEC PGM=IEFBR14                 
//SYSOUT DD SYSOUT=*                       
//SYSPRINT DD SYSOUT=*   
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Jan 19, 2007 8:58 am
Reply with quote

Hello,

How are all of the other production jobs in your system scheduled?

I'd guess that there are many jobs that have to run at certain times or on certail days, or after some other job successfully completes.

You may want to include your jobs there.

If you want to take a shot at writing your own scaled down scheduler (as SuperK mentioned), and the data center will give up an address space (initiator, partition, etc) for your scheduling process, do a bit of research on the STIMER macro. It will allow your process to "sleep" and periodically wake up returning control to your scheduler.
Back to top
View user's profile Send private message
coria

New User


Joined: 09 Oct 2006
Posts: 36

PostPosted: Fri Jan 19, 2007 1:06 pm
Reply with quote

Thanks for all your help icon_biggrin.gif
I'll have a try
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Jan 19, 2007 8:41 pm
Reply with quote

You're welcome.

Good luck icon_biggrin.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts To get the the current time DFSORT/ICETOOL 13
No new posts RC query -Time column CA Products 3
No new posts C Compile time time stamps Java & MQSeries 10
No new posts Parallelization in CICS to reduce res... CICS 4
No new posts OPCP scheduler questio IBM Tools 0
Search our Forums:

Back to Top