- How do change / set the completion status to ENDED NOTOK if specific words or exit code is found in the sysout or output when the Control-M Job completed ENDED OK? - How to define a Control-M Job that will search for specific works or exit code in the sysout or output and will perform specific task automatically? |
The below procedures will create a "On-Do Action" to search for the specific words or exit code in the sysout or output and update the completion status of the Control-M job to ENDED NOT OK. 1. Launch Control-M/Enterprise Manager Workload Automation GUI Planning Domain to create a job. Then select the "Actions" Tab s below: 2. Under the "Action Tab", click on the "+" sign beside the "On-Do Action" as below: 3. Define a "On-Do Action" as below to recognize a specific word or exit code from the output from the script when the Control-M Job completed: - For "On" field, select "Specific statement output" - For "Statement" field, input "*" - For "Code", input the specific code or word that need to be search in the sysout or output For example, 255 - For "Do" field, select the required action. For example, "Set to Not OK" |