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

Scheduling a job to start 5 min. after another job


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sreenivasreddyg

New User


Joined: 23 Apr 2005
Posts: 39
Location: delhi

PostPosted: Wed Jun 24, 2009 3:37 pm
Reply with quote

I want to schedule a job such that it should run after the 5 minutes from the start of another job.

Suppose, if job 'X' runs at 12:00AM then my job 'Y' should run at 12:05AM. If job 'X' runs at 11:00AM then my job 'Y' should run at 11:05AM.

Please let me know how this is possible using CA-7
Back to top
View user's profile Send private message
maheshvamsi

New User


Joined: 22 Mar 2008
Posts: 39
Location: bangalore

PostPosted: Wed Jun 24, 2009 6:33 pm
Reply with quote

Can we know why you are waiting for 5 minutes time gap?

As per my knowledge, CA7 is not having any option to do this.

You need to write one program to capture timings in Job X & create a control card dynamically to trigger that job Y using SASSTRLR after after 5 minutes.
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Wed Jun 24, 2009 6:37 pm
Reply with quote

Before that can I know the business need for doing so? Why the gap of five minutes?
Back to top
View user's profile Send private message
sreenivasreddyg

New User


Joined: 23 Apr 2005
Posts: 39
Location: delhi

PostPosted: Mon Jun 29, 2009 10:30 am
Reply with quote

The first job will set an Indicator in the database to "Y" and we need to start after the indicator is set. The first job runs for 2 hours and we don't need to wait until the completion of that job for triggering the second job.
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Mon Jun 29, 2009 11:15 am
Reply with quote

I am not aware if CA7 has such facility.

But What I would have done in this case is Create one dataset when you make your indicator to "Y".

Make second job as dataset triggered. At the end of this job delete this dataset.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Mon Jun 29, 2009 5:01 pm
Reply with quote

Hi,

why not make the step that sets the indicator a separate job. ?


Gerry
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Mon Jun 29, 2009 5:35 pm
Reply with quote

As gcicchet mentioned ...

That's exactly the only way it should be done !!!
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 -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts Start CICS transaction every day at 2AM CICS 4
This topic is locked: you cannot edit posts or make replies. Need assistance in job scheduling logic. Mainframe Interview Questions 2
No new posts Job scheduling problem. JCL & VSAM 9
No new posts Z Monitoring server fails to start IBM Tools 1
No new posts I don't really get the, "Start a... General Talk & Fun Stuff 3
Search our Forums:

Back to Top