If you want to specify a custom abend code in a policy,
edit the policy in the policy text editor.
About this task
When you use the wizard to create a policy in a CICS® Bundle project and specify
an action type of abend, the wizard allows only the default abend
code of AMPB. To specify a custom abend code in a policy rule, use
the policy text editor to overwrite the appropriate line in the policy.
Procedure
- Open your xxxx.policy file in the default text editor.
- Find the policy rule you want to update, and locate the <abend abendCode="AMPB"/> statement. For example:
<rule type="filerequest">
<name>gt_5k_filereads_abend_rule</name>
<description></description>
<storageUsedCondition item="read" operator="GT" unit="K" value="5"/>
<action>
<abend abendCode="AMPB"/>
</action>
</rule>
- Type over AMPB with your chosen abend
code. This example shows the rule from the previous example, but with
a custom abend code of XX99:
<rule type="filerequest">
<name>gt_5k_filereads_abend_rule</name>
<description></description>
<storageUsedCondition item="read" operator="GT" unit="K" value="5"/>
<action>
<abend abendCode="XX99"/>
</action>
</rule>
- Repeat steps 2 - 3 to update as many abend codes in rules
as you need.
- Click to save the results. The XML is validated
when you save it, and errors are denoted with a red cross. Correct
any errors and save.
Results
The policy is created with abend actions that contain custom
abend codes.
What to do next
Export the CICS Bundle
project that contains the policy to zFS. Then either add the policy
to a platform or an application project to package it for deployment,
or define a BUNDLE resource in the CICS CSD or CICSPlex® SM data repository and install the bundle into any CICS region.