How do I decompile or delete a resource rule that has a "-" character at the end of a rule key, as in $KEY(ABC-)?
search cancel

How do I decompile or delete a resource rule that has a "-" character at the end of a rule key, as in $KEY(ABC-)?

book

Article ID: 25706

calendar_today

Updated On:

Products

ACF2 ACF2 - DB2 Option ACF2 for zVM ACF2 - z/OS ACF2 - MISC PanApt PanAudit

Issue/Introduction

 

If I try to decompile, list, or delete resource rules that end with a "-" without using the LIKE option, I get message:
ACF04005 RECORD(S) NOT FOUND

Environment

Release:
Component: ACF2MS

Resolution

Note: When you specify a "-" in a resource key, the $KEY value, the "-" it is treated as a literal not as a masking character.

When in resource rule mode (SET RESOURCE(xxx) was issued), the syntax for decompiling, listing, or deleting is:
LIST rulekey
DECOMP rulekey
DELETE rulekey

where "rulekey" is the desired $KEY value of the rule.

When you specify a "-" at the end of the rulekey without using the LIKE(?) operand, the ACF command processor is treating that "-" as a continuation, so you would need to hittwice. If the rulekey was specified as ABC- and there is no ABC rule, then you will get the ACF04005 message. If a rule ABC did exist, then that rule would be displayed (or deleted).

 

Resolution:

CA-ACF2 resource rules that have a "-" at the end of a rule key name can be decompiled (listed or deleted) if you specify the rule key in quotes.
For example:

    ACF
    SET RESOURCE(xxx)
    DECOMP 'ABC-'


    or LIST 'ABC-

This resource rule can be deleted if you specify the rule key in quotes.
For example:

ACF
SET RESOURCE(xxx)
DELETE 'ABC-'

Consult the CA-ACF2 Administrator Guide for additional information related to resource rules.