Here is a sample of the Edit Rule panel:
EDIT RTM.QA.OPS.SAMPLE.RULES(ARCHFAIL) - 01.02 Columns 00001 00072 Command ===> Scroll ===> CSR ****** ***************************** Top of Data ****************************** 000100 )MSG OPS8320O 000200 )PROC 000300 /**********************************************************************/ 000400 /* Rule Name: ARCHFAIL */ 000500 /* Rule Type: Message */ 000600 /* Rule Function: This rule fires on the "archive creation completed"*/ 000700 /* message. It will notify a tso userid if the */ 000800 /* archive creation did not receive a zero return code*/ 000900 /* Author: MLS */ 001000 /* History: 03/04/18 - Initial Creation - MLS */ 001100 /* */ 001200 /**********************************************************************/ 001300 001400 userid = "????" /* Specify the userid to be notified */ 001500 parse VAR MSG.TEXT with . "MAXRC=" retcode . 001600 if retcode ¬= 0 then 001700 do 001800 ADDRESS TSO 001900 "SEND 'Archive creation job" MSG.JOBNAME , 002000 "ended with return code" retcode "' USER("userid")" 002100 end /* if retcode ¬= 0 then do */ ****** **************************** Bottom of Data ****************************
Note: Issuing the SAVE command to save a rule from in an editing session does not make the rule available for testing, nor does it compile the rule or check its syntax. Before you can test a rule, you must enable it by issuing the E command on the Rule Set List panel or the Rule List panel.
For detailed information about the AOF and instructions for writing AOF rules, see the AOF Rules User Guide. If you want information about the OPS/REXX programming language, see the Command and Function Reference.
| Copyright © 2012 CA. All rights reserved. | Tell Technical Publications how we can improve this information |