1 Reply Latest reply on Mar 22, 2019 1:00 PM by Adriano Gomes

    Can we get control-m In-condition which trigger the job in mail?

    Bharathselvam Panneerselvam
      Share This:

      Hi All,

       

       

      I have a control-M job with more than 10 in-condition OR between them.

       

       

      I would like to get an email which in-condition among the 10 has been triggered the job. Please suggest how to get the email which states the in-condition triggered the job.

        • 1. Re: Can we get control-m In-condition which trigger the job in mail?

          Hi Bharathselvam Panneerselvam

           

          there is one method that can be exploited, by running POST_CMD that execute CTMAPI "ctm run job:log::get "%%DATACENTER:%%ORDERID" | grep DELETED | tail -1"

           

          based on the scenario where one job will depend uppon the completion of any of a randon set oj predecessors jobs, it is common to remove all possible conditions expected as IN cond at job END, By doing this, the only condition used to trigger the job will be the only reported as "DELETED" on CTM Job log, like the screen below.

          If that is the case, all you need to do is to send the output to mailx and receive it by e-mail.

           

          Hope that it helps you.

           

          My Best

          A>Gomes

          4 of 4 people found this helpful