Previous Topic: Make Modifications with EasyRuleNext Topic: How to Test a Rule


Work With User Code Areas in EasyRule

Sometimes you might want to write a rule in which decisions are made or actions taken that cannot be achieved with EasyRule. For example, you might want to test system status using a complex set of AND/OR logic equations, or you might want to choose one of several actions depending on system status or other criteria. EasyRule provides optional user code areas, which are reserved spaces in a rule that was generated by EasyRule. In these user code areas you can add your own REXX statements to the automatically generated ones, so you can extend EasyRule-generated rules to support decisions and actions of any degree of complexity. You can use ISPF edit to add or change REXX code in a user code area. Code generated by EasyRule and saved as an EasyRule-modifiable rule should only be changed by using EasyRule.

The EasyRule save panel provides three user code area controls:

Your responses to the three questions on this panel determine whether the respective user code areas will be generated for that rule. You can also allow all three responses to default to the OPSVIEW 0.5 value (for details on using this option, see the OPSVIEW User Guide).