Previous Topic: Lesson 2: Test and Verify a RuleNext Topic: Lesson 4: How to Organize Rules into Rule Sets


Lesson 3: Establish More Rules

This lesson shows you how to establish another message suppression rule, and how to establish a test command rule.

Follow these steps:

  1. Verify that the AOF Test Rule List panel displays.

    If not, proceed with the following instructions:

  2. Type S IEC233I on the Command line and press Enter.
  3. Enter the text of another suppression rule.

    Your program should look just like the one shown here. This four-line REXX program is another rule that suppresses the system message IEC233I.

    AOF TEST ----- USERID.TEST.RULES(IEC233I) - 01.00--------- COLUMNS 000 000 COMMAND ===> SCROLL ===> PAGE ****** ***************************** Top of Data **************************** '''''' )MSG IEC233I '''''' )PROC '''''' IF MSG.JOBNAME ='J1234' THEN RETURN 'SUPPRESS' '''''' ELSE RETURN 'DELETE' '''''' '''''' '''''' ''''''

  4. Press your PF3 key or enter END on the Command line.

    Your newest rule is created and ready to test and verify as you did in Lesson 2: Test and Verify a Rule.

  5. Enter S CMDTEST on the command line of the AOF Test Rule List panel to establish a command rule..
  6. Enter the text of a new command rule.

    Your program should appear like the following example. This REXX program is a rule that responds to a z/OS command event.

    AOF TEST ----- USERID.TEST.RULES(CMDTEST) - 01.00--------- COLUMNS 000 000 COMMAND ===> SCROLL ===> PAGE ****** ***************************** Top of Data **************************** '''''' )CMD CMDTEST '''''' )PROC '''''' SAY OPSINFO('CPUID') 'FOR THIS CPU' '''''' RETURN 'ACCEPT' '''''' '''''' '''''' '''''' '''''' ''''''

  7. Press your PF3 key or enter END on the Command line.

    Your command rule is created and ready to test and verify as you did in Lesson 2: Test and Verify a Rule.