How to use the NOTIFY to send job status via email.
Release : 12.0
Component : ESP WORKLOAD AUTOMATION
If a job goes overdue, it's currently a manual process to notify support. How to use the OVERDUE monitor point to issue the status to an email distribution.
The MAILLIST data set defines a notification list.
MAILLIST is based on sample member CYBESS71 in prefix.CD7YSAMP (prefix represents the data set qualifiers for your system).
MAILLIST includes the following initialization parameters:
A single SMTPPARM initialization parameter that defines a Simple Mail Transfer Protocol (SMTP) server to CA WA ESP Edition
Any number of MAILBOX initialization parameters to specify the name of each mailbox
A single, optional LOG initialization parameter for each mailbox to specify whether mailbox messages are written to the mail log
Any number of EMAIL initialization parameters to specify an email address in mailboxes. You can specify the same email address in different mailboxes
Any number of TSOUSER initialization parameters to include TSO user IDs in mailboxes. You can specify the same TSO user ID in different mailboxes
If you have a complex distribution list, we recommend that you use email group addresses for each distribution point. Each group can include a number of different individual email addresses and each individual recipient can belong to any number of groups.
You must use the LOADNL initialization parameter to load the MAILLIST data set.
You can use the MAILBOX command to list how the mailboxes are defined.
You can use the mailboxes in events and in NOTIFY statements. When you specify a mailbox in an event or a NOTIFY statement, all the messages generated by the event or the NOTIFY statement are sent to all email addresses and TSO users defined in that mailbox.
You can specify a mailbox in the PROFILE initialization parameter. When you specify a mailbox in a PROFILE initialization parameter, any event using the prefix defined in this PROFILE initialization parameter uses that mailbox as a default mailbox. The default mailbox is used when the event does not specify a mailbox.
Example: MAILLIST Data Set CYB.ESP.PARMLIB(MAILLIST)
SMTPPARM CLASS(A) JOBNAME(SMTP)
MAILBOX PAYROLL MAXLINES(0)
LOG ON
TSOUSER CYBPAY1 SYSID(SYSC)
EMAIL [email protected]
EMAIL [email protected]
MAILBOX CYBACCOUNTING MAXLINES(300)
TSOUSER (CYBACC1 CYBACC2) SYSID(SYSA)
Example LOADNL: This can be entered from pagmode to activate now. Add to the CYBESS03 member to load at every ESP start.
LOADNL CYB.ESP.PARMLIB(MAILLIST)
For information about MAILLIST, LOADNL, MAILBOX and SMTPPARM. see Links below