You can use an exit procedure, together with the trouble ticket interface and data entry definitions, to implement an interface that prompts operators for more than one email address.
To implement a trouble ticket interface for multiple email addressees
&IF .&$USRNAME1 NE . &THEN + &$AMTADDRESS1 = &$USRNAME1 &IF .&$USRNAME2 NE . &THEN + &$AMTADDRESS2 = &$USRNAME2 ...
Note: The number of &IF statements sets up the number of addresses you want to provide.
FIELD NAME=$USRNAME1 VALUE="&$AMTADDRESS1" DESC="EMAIL ADDRESS #1" COMMENT="" REQUIRED=NO LENGTH=40 FIELD NAME=$USRNAME2 VALUE="" DESC="EMAIL ADDRESS #2" COMMENT="" REQUIRED=NO LENGTH=40 ...
Notes:
The trouble ticket interface prompts operators for email addresses when they enter TT next to an alert.
Example: Implement a Trouble Ticket Interface for Two Email Addresses
To create an NCL procedure named EXAMPLE that sends emails to two addresses
&IF .&$USRNAME1 NE . &THEN + &$AMTADDRESS1 = &$USRNAME1 &IF .&$USRNAME2 NE . &THEN + &$AMTADDRESS2 = &$USRNAME2 ...
PROD-------- Alert Monitor : Trouble Ticket Data Entry Definition ------------- Command ===> Function=Update Scroll ===> CSR ****** ***************************** TOP OF DATA ****************************** 000001 FIELD NAME=$USRNAME1 000002 VALUE="&$AMTADDRESS1" 000003 DESC="EMAIL ADDRESS#1" 000004 COMMENT="" 000005 REQUIRED=NO 000006 LENGTH=40 000007 FIELD NAME=$USRNAME2 000008 VALUE="" 000009 DESC="EMAIL ADDRESS #2" 000010 COMMENT="" 000011 REQUIRED=NO 000012 LENGTH=40 ****** **************************** BOTTOM OF DATA ****************************
PROD--------------- Alert Monitor : Email A Trouble Ticket -Columns 00001 00072 Command ===> Function=Update Scroll ===> CSR Mail Address defaultaddress@tt.com_____________________________ Host Name (IBM) HOSTNAME SMTP Node Name (IBM) NODENAME SMTP Job Name (IBM) SMTP____ SMTP DEST Id (TCPaccess) ________ Exit Procedure Name EXAMPLE_ Subject &$AMDESC__________________________________________ Enter Mail Text Below ****** ***************************** TOP OF DATA ******************************
Result
When an operator enters TT next to an alert, they are prompted for an email address as follows:
PROD--------------- Alert Monitor : Trouble Ticket Details -------------------- Command ===> Email Address #1 ... defaultaddress@tt.com Email Address #2 ...
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |