Maximum number of alarm of job.

All questions about Control-M jobs definitions
Post Reply
User avatar
futre25
Nouveau
Nouveau
Posts: 166
Joined: 11 Aug 2009 12:00

Maximum number of alarm of job.

Post by futre25 » 12 Jun 2014 3:19

Hi to all.

I need to know if there is any way in Control-M v7:

- If a job fails three times, not report more alarms.

It is possible?

I have a cyclic job fails at night and i have 600 alarms appear as the job has failed. With 3 alarms i know that the work has been executed wrongly.

Thanks to all.
Regards.

User avatar
fyot
Nouveau
Nouveau
Posts: 736
Joined: 26 Apr 2005 12:00
Location: PARIS
Contact:

Post by fyot » 13 Jun 2014 8:54

You must use %%RUNCOUNT variable,

testing if RUNCOUNT is = 3

If yes you send your email.

User avatar
futre25
Nouveau
Nouveau
Posts: 166
Joined: 11 Aug 2009 12:00

Post by futre25 » 13 Jun 2014 9:35

Thanks for your reply.

But, I just want to send the mail when they are three alerts, not three executions.

As I indicated to the variable %%ROWCOUNT that are erroneous executions.

Thnaks very much.

User avatar
fyot
Nouveau
Nouveau
Posts: 736
Joined: 26 Apr 2005 12:00
Location: PARIS
Contact:

Post by fyot » 14 Jun 2014 11:25

You can use your own AUTOEDIT variable
using DO SET VAR and %%PLUS to increment

See following post

User avatar
futre25
Nouveau
Nouveau
Posts: 166
Joined: 11 Aug 2009 12:00

Post by futre25 » 17 Jun 2014 11:50

Thenks for your reply and the post.

It has been very useful.

Regards.

Post Reply