How to set a Control-M job to set the status OK when a certain message is written to the Output or set the to status NOTOK when this certain message is not included in the Output? |
In the Actions section of the job definition set the following On-Do Actions: It's very important to enclose with asterisks (*) the string that we want to search in the Output, in this case "ALL COMPLETED". The job will automatically end Not Ok unless "ALL COMPLETED" is specifically seen in the Output The following video demonstrates this solution:
|