View previous topic :: View next topic
|
Author |
Message |
coria
New User
Joined: 09 Oct 2006 Posts: 36
|
|
|
|
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 |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Got CICS? |
|
Back to top |
|
|
coria
New User
Joined: 09 Oct 2006 Posts: 36
|
|
|
|
NO, they are batch jobs, can i do that in JCL without using some utilites like JOBTRAC? |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
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 |
|
|
coria
New User
Joined: 09 Oct 2006 Posts: 36
|
|
|
|
Yes, we have CICS. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
DavidatK
Active Member
Joined: 22 Nov 2005 Posts: 700 Location: Troy, Michigan USA
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
coria
New User
Joined: 09 Oct 2006 Posts: 36
|
|
|
|
Thanks for all your help
I'll have a try |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
You're welcome.
Good luck |
|
Back to top |
|
|
|