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 job at a certain time since no job scheduler

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to start job at a certain time since no job scheduler
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: 3158
Location: Tucson AZ

PostPosted: Thu Jan 18, 2007 2:05 pm    Post subject:
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    Post subject:
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: 3158
Location: Tucson AZ

PostPosted: Thu Jan 18, 2007 3:42 pm    Post subject:
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    Post subject:
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: 3158
Location: Tucson AZ

PostPosted: Thu Jan 18, 2007 5:10 pm    Post subject:
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

Moderator Team Head


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

PostPosted: Thu Jan 18, 2007 5:51 pm    Post subject: Re: How to start job at a certain time since no job schedule
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    Post subject: Re: How to start job at a certain time since no job schedule
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

Site Director


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

PostPosted: Fri Jan 19, 2007 8:58 am    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Fri Jan 19, 2007 8:41 pm    Post subject:
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    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
No new posts DSNACCOX (can it be run on 1 db/ts, t... SRICOBSAS DB2 3 Sat May 06, 2017 12:59 am
No new posts LISTIDR compiled date/time jerryte IBM Tools 3 Thu Apr 20, 2017 7:37 pm
No new posts Application not run by time HH:MM tri... jzhardy IBM Tools 1 Sun Apr 09, 2017 3:22 pm
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts How to get current date -1 and curren... murali.andaluri DFSORT/ICETOOL 3 Wed Mar 08, 2017 2:09 pm


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