WORKLOAD AUTOMATION COMMUNITY
  • Home
  • Blogs
  • Forum
  • Resources
  • Events
    • IWA 9.5 Roadshows
  • About
  • Contact
  • What's new

How to send an email alert for errors with Workload Automation on z/OS

6/12/2020

0 Comments

 
Picture
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.  ​
Picture
When WA decides to send an email? 
 
You can set that the emails are sent for the following alert conditions: 
 
For operations: 
  • An operation in the current plan is active for an unexpectedly long time. 
  • An operation in the current plan is set to ended-in-error status. 
  • An operation in the current plan becomes late, which means that it reaches its latest start time and does not have the status started, complete, or deleted. 
  • An operation in the current plan is promoted by WLM (z/OS Workload Manager)  
  • The time that an operation is waiting to allocate a given resource exceeds the specified time.  
 
For product subtasks: 
  • A Workload Automation subtask or subsystem ends unexpectedly. 
 
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) 
HEADER(FROM: recipient_address 
                TO: recipient_address1, ..., recipient_addressN 
                CC: recipient_address1, ..., recipient_addressN 
                BCC: recipient_address1, ..., recipient_addressN 
                SUBJECT: subject_text) 
TEXTMEMBER(member_name) 
 

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:. 
 
 
An Example: 
 
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*) 
HEADER(FROM: wa.scheduler@company.com 
                TO: john.smith@external.com, paul.red@internal.com 
                CC: federic.white@company.com 
                BCC: edgar.gree@company.com 
                SUBJECT: job &OJOBNAME terminate with error code: &OERRCODE) 
 TEXTMEMBER(text)   
 
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. ​

Author's BIO
Picture
Paolo Falsi, Technical Lead, HCL Technologies

Started working for IBM in 1990 at the IBM Software Laboratory in Rome. He started his career in the development teams of IBM OSI products. During these years, he has held various roles in the products development lifecycle but mainly as developer and designer of solutions in IBM Automation products. After 5 year working in the IBM BigFix family products with expert engineer role, he changed company in 2017 embracing the HCL company.  In HCL company he has a Technical leader role in the Workload Automation products suite. He holds a master's degree in Mathematics.   ​
View my profile on LinkedIn
0 Comments

Your comment will be posted after it is approved.


Leave a Reply.

    Archives

    March 2023
    February 2023
    January 2023
    December 2022
    September 2022
    August 2022
    July 2022
    June 2022
    May 2022
    April 2022
    March 2022
    February 2022
    January 2022
    December 2021
    October 2021
    September 2021
    August 2021
    July 2021
    June 2021
    May 2021
    April 2021
    March 2021
    February 2021
    January 2021
    December 2020
    November 2020
    October 2020
    September 2020
    August 2020
    July 2020
    June 2020
    May 2020
    April 2020
    March 2020
    January 2020
    December 2019
    November 2019
    October 2019
    August 2019
    July 2019
    June 2019
    May 2019
    April 2019
    March 2019
    February 2019
    January 2019
    December 2018
    November 2018
    October 2018
    September 2018
    August 2018
    July 2018
    June 2018
    May 2018
    April 2018
    March 2018
    February 2018
    January 2018
    December 2017
    November 2017
    October 2017
    September 2017
    August 2017
    July 2017
    June 2017
    May 2017

    Categories

    All
    Analytics
    Azure
    Business Applications
    Cloud
    Data Storage
    DevOps
    Monitoring & Reporting

    RSS Feed

www.hcltechsw.com
About HCL Software 
HCL Software is a division of HCL Technologies (HCL) that operates its primary software business. It develops, markets, sells, and supports over 20 product families in the areas of DevSecOps, Automation, Digital Solutions, Data Management, Marketing and Commerce, and Mainframes. HCL Software has offices and labs around the world to serve thousands of customers. Its mission is to drive ultimate customer success with their IT investments through relentless innovation of its products. For more information, To know more  please visit www.hcltechsw.com.  Copyright © 2019 HCL Technologies Limited
  • Home
  • Blogs
  • Forum
  • Resources
  • Events
    • IWA 9.5 Roadshows
  • About
  • Contact
  • What's new