It is currently 21 May 2019 2:39

Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 24 Jul 2015 2:12 

Joined: 13 May 2015 7:10
Posts: 1
Hello all. I have been searching and have not been able to come up with much so I hope someone here will be able to help out.

We have some jobs in Control-M in which the customer has stated that it can be rerun once. If it fails again, we are to force it complete and send an email advising that such action was taken. I know that within the job, on the Steps tab, you can set the job to send out and email, force itself complete, and that you can use various variables there such as %%JOBNAME, %%COMPSTAT, etc. My question is this, is there a way, from that tab, to use some kind of variable to count how many times the job has abended? I want to be able to count the number of abends, if it fails that second time, then automatically send out the email and force itself complete. Of course, if it fails the first time, just set it to rerun automatically.

I know how to do everything except count the number of times a job has abened and act on it. If anyone could help me out with that I would greatly appreciate it.

PostPosted: 07 Dec 2016 8:39 
User avatar

Joined: 08 Jun 2007 12:00
Posts: 807
Location: Varese - Italy
From version 8 in do-action ther is a specific do for this:
ON. "Job's number of failures"=2
DO notification MAIL

In previous versions I do this with some tricks setting variables and checking them, but now is not necessary.


Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 posts ] 

All times are UTC+02:00

Who is online

Users browsing this forum: No registered users and 3 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited
The site created by Franck YOT. Images, logo, content and trademarks about Control-M products are property of BMC Software.
All the comments are property of their posters. Images, logo, content and design are © copyright by All Rights Reserved