When you use the wizard to create a policy in a CICS® Bundle project, you can create
only one rule. To add more rules to an existing policy, you can use
the wizard to create another policy, then copy the new rule in that
policy to the existing policy file.
About this task
After you create another policy, you use a text editor
to copy and paste the policy rule information into the existing policy
file, for example name.policy.
Procedure
- Create a policy as described in Creating a policy in a CICS Bundle project. Ensure
that the name of the new rule is unique for the existing policy.
- In the default text editor, open the name.policy file
that you created in 1
- Copy the new policy rule information to your
clipboard. The policy rule information is enclosed within the <rule
type="xxx"> and </rule> tags. For example:
<rule type="storage">
<name>Task24bitstg_rule</name>
<description></description>
<storageUsedCondition item="task24" operator="GT" unit="B" value="0"/>
<action>
<message/>
</action>
</rule>
- Open the original name.policy file
and paste the new rule that you copied in the previous step after
the last </rule> tag so that </policy:policy> remains
at the end of the XML.
- Repeat the previous steps add all the rules you require
to the original policy.
- Click to save the results. When you save the
file, the XML is validated. Any errors are denoted with a red cross,
and messages that describe the error are displayed in the Problems view.
Correct any errors, then save the policy file.
Results
The policy in the CICS Bundle
project now contains multiple rules.
What to do next
Export the CICS Bundle
project with policies to zFS for deployment, or add the policy to
a platform or an application project to package it for deployment.
For details, see
Creating a policy in a CICS Bundle project.