Modifying the state of a resource
You can use an evaluation definition and an analysis definition to modify a CICS® resource when it is not in the intended state.
This example is an extension of the example in Reusing analysis specifications and analysis groups, which described how to monitor
files in the CICS system group called CGSAORS1. This task
uses the time period definition (PDFCHECK) and the action definition
(RTAPAY12) from that example.
- Create the evaluation definition:
- From the main menu, click to display the Evaluation definitions tabular view (EVALDEF object).
- Click the Create... button. The Evaluation definitions create view is displayed.
- Complete the fields as follows:
Name RTEPAY12 Description REMFILE PAYFILA* enabling Sample interval 60 Resource table REMFILE Instance identifier of evaluated resource PAYFILA* Method of evaluating results in a result set ANY Separate task indicator NO Field being evaluated ENABLESTATUS Severity assigned when results meet criteria VHS View that may provide extra information REMFILE Modification string ENABLESTATUS=ENABLED, OPENSTATUS=OPEN. - Click Yes to create the definition.
In this example, the modification string expression modifies the ENABLESTATUS and OPENSTATUS attributes to make the specified files available.
- Create the analysis definition:
- From the main menu, click to display the RTA definitions tabular view (RTA object).
- Click the Create... button. The RTA definitions create view is displayed.
- Complete the fields as follows:
Name RTDPAY14 Description Appl file check and modify Analysis interval 60 Evaluation expression RTEPAY12 Execute evaluation modification string Yes Action definition name RTAPAY12 Count of true evaluations before VLS raised 1 Count of false evaluations before VLS resolved 1 Count of true evaluations before LS raised 1 Count of false evaluations before LS resolved 1 Count of true evaluations before LW raised 1 Count of false evaluations before LW resolved 1 Count of true evaluations before HW raised 1 Count of false evaluations before HW resolved 1 Count of true evaluations before HS raised 1 Count of false evaluations before HS resolved 1 Count of true evaluations before VHS raised 1 Count of false evaluations before VHS resolved 1 - Click Yes to create the definition.
The Execute evaluation modification string field indicates that the resource modification defined in the evaluation definition should be performed when the evaluation condition is true.
Note: For a complete description of the RTA definitions view, see RTA definitions. - Associate the new analysis definition with the existing analysis
group:
- From the RTA definitions tabular view, click the Record check box beside the entry for RTDPAY14 and click the Add to RTA group... button.
- On the Add to RTA group view, complete the fields as follows:
Resource group name RTGPAY02 Period definition name PDFCHECK - Click Yes to add the definition to the RTA group.