Workload Automation on z/OS (IBM Z Workload Scheduler or HCL Workload Automation for Z) allows users to centrally control all the automation processes providing capabilities to facilitate the operations for mainframe users.
You can have the Workload Automation sending an email to a recipient or list of recipients when an alert condition occurs.
When WA decides to send an email?
You can set that the emails are sent for the following alert conditions:
For product subtasks:
You can then decide whether send an email to an address group basing on a rule (FILTER) that checks whether an expression is satisfied or not.
The email will be sent an email if all the expressions in the following rule are satisfied:
FILTER(expression1, expression2, ..., expressionn)
How you can define the email content and the email recipients addresses?
Providing the following rule:
FILTER(expression1, expression2, ..., expressionN)
TO: recipient_address1, ..., recipient_addressN
CC: recipient_address1, ..., recipient_addressN
BCC: recipient_address1, ..., recipient_addressN
If expression1 AND expression2 AND …. AND expressionN are satisfied then email with subject «subject_text» and text contained in «member_name» file will be sent to the recipents addresses provided in the parameters TO: CC: e BCC:.
I can decide whether to send the email with content contained in the file «text» to a group of operators if a job ended in error, the application name must be xxx* (* is a wild card) and the job name must be yyy*.
In this case the rule will be:
FILTER(&ALERCOND=ERROROPER, &OADID=xxx*, &OJOBNAME=yyy*)
TO: firstname.lastname@example.org, email@example.com
SUBJECT: job &OJOBNAME terminate with error code: &OERRCODE)
Where &ALERCOND, &OADID, &OJOBNAME and &OERRCODE are variables containing the current values (&ALERCOND is the alert condition, &OADID is the application name, &OJOBNAME is the job name and &OERRCODE is the error code).
Prerequisite to use this functionality
To activate this function, you need to ensure that you have started the Communications Server Simple Mail Transfer Protocol (CSSMTP) on a z/OS system that runs on the same JESPLEX where Workload Automation runs.
Your comment will be posted after it is approved.
Leave a Reply.