How can we detect the EOM in CTM

All questions about Control-M jobs definitions
Post Reply
User avatar
grazit
Nouveau
Nouveau
Posts: 3
Joined: 04 Dec 2008 12:00

How can we detect the EOM in CTM

Post by grazit » 12 Mar 2014 2:10

I have a client who is running two jobs in CTM. In this case the Predecessor job runs every day and the Successor job runs on the First of the month. The problem is the successor job must run if the Predecessor job was successful on its run on the day before the successor. Therefore it must be able to detect a condition that was posted by the Predecessor on the EOM of the prior month only. I can't come up with a way to code this. Any idea would be appreciated. Thanks

steve_r

How can we detect the EOM in CTM

Post by steve_r » 17 Mar 2014 8:30

We have this scenario quite often. We use two identical versions of the predecessor job - one which loads every day EXCEPT the last day of the month which leaves no 'out' condition. The second version ONLY runs on the last day of the month and, on success, creates an 'out' condition which stays on the system and is the 'in' condition of the successor job.

User avatar
grazit
Nouveau
Nouveau
Posts: 3
Joined: 04 Dec 2008 12:00

Post by grazit » 17 Mar 2014 9:18

Perfect clean and simple.
Thanks

User avatar
gglau
Nouveau
Nouveau
Posts: 317
Joined: 13 Jun 2007 12:00

Post by gglau » 21 Mar 2014 12:47

Order successor job on last day of the month but delay its execution to next day.

For example:
Predecessor job starts at 10pm and finishes at 11pm. Job is ordered everyday to provide OUT cond daily.

Successor jobs starts at 10am, to be defined start until 11am, MAXWAIT 2 and ordered on EOM. When IN cond exists at around 11pm, job is out of time window and has to wait for 10am next day which is FOM. Successor job until time is not critical as long as it is before Predecessor job start time.

This assumes that EOM/FOM refer to Control-M day, e.g. 0700 to 0659. If Successor job should run at 0500 calendar day FOM, it should be ordered on Control-M day EOM without anything special.

Post Reply