How to send email alert to users after MAX Rerun is complete

All questions about Control-M jobs definitions
Post Reply
User avatar
cmistry
Nouveau
Nouveau
Posts: 6
Joined: 11 Jan 2008 12:00

How to send email alert to users after MAX Rerun is complete

Post by cmistry » 22 Jul 2010 5:57

i have setup an ON Statement as *No Matching File or Patter Found* DO - RERUN

in the Execution Tab i have put down rerun every 2 minutes and Max rerun is 3 times.

i would like to send email alert to users group after FTP job doesn't find a file after 3 attempts. can someone please help me with this?

Thanks
Chet.

User avatar
philmalmaison
Nouveau
Nouveau
Posts: 1148
Joined: 08 Jun 2007 12:00
Location: Ile de France

Post by philmalmaison » 02 Aug 2010 4:39

you could try the %%RUNCOUNT system autoedit variable.

regards
Philmalmaison

User avatar
Venky
Nouveau
Nouveau
Posts: 16
Joined: 03 Dec 2006 12:00

Post by Venky » 15 Aug 2010 4:27

Rather than %%RUNCOUNT, you can do this :

On Stmt * Code RUNCOUNT=3

Do Mail To**** Sub **** Body ****

User avatar
sam33961
Nouveau
Nouveau
Posts: 4
Joined: 31 Jul 2009 12:00

Post by sam33961 » 14 Sep 2011 5:02

Rather than %%RUNCOUNT, you can do this :

On Stmt * Code RUNCOUNT=3

Do Mail To**** Sub **** Body ****
Looking at above scenario.i have one doubt requirnment is job should run twice after it fails and should send email automatically after it fails at 3rd time.but looking at above suggestion i guess job will send email irrespective of job status ( OK or Failed ).

i need some suggestion where email should be sent once job gets fails in 3rd attempt.[/quote]

Post Reply