Use ACF2 RECKEY command to modify a rule entry with rule entries without any access(ie READ, WRITE, ALLOCATE etc.) specified, for example:
$KEY(xxx)
abc.- UID(XYZ)
With RECKEY subcommand:
RECKEY xxx DEL(abc.- UID(XYZ)) NOLIST
and the response is:
ACF60203 NO MACHING RULE LINE FOUND - PROCESSING TERMINATED
Release : 16.0
Component : ACF2 for z/OS
THE RECKEY command can be used to delete a rule entry without any access coded, for example:
Example JCL:
//ACFBATCH EXEC PGM=ACFBATCH
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
SET RULE
COMP * STORE
$KEY(XXX)
ABC.- UID(XYZ)
RECKEY XXX DEL(ABC.- UID(XYZ)) NOLIST
DECOMP *
/*
Here is the output:
SET RULE
COMP * STORE
ACF70010 ACF COMPILER ENTERED
$KEY(XXX)
ABC.- UID(XYZ)
ACF70051 TOTAL RECORD LENGTH= 179 BYTES, 1 PERCENT UTILIZED
ACF60027 RULE XXX STORED
RECKEY XXX DEL(ABC.- UID(XYZ)) NOLIST
ACF75052 ACCESS RULE XXX STORED BY USER002 ON 03/21/22-11:29
ACF60202 THE FOLLOWING RULE LINE(S) WILL BE DELETED
ABC.- UID(XYZ)
ACF70010 ACF COMPILER ENTERED
ACF70051 TOTAL RECORD LENGTH= 98 BYTES, 0 PERCENT UTILIZED
ACF60207 RULE XXX REPLACED
DECOMP *
ACF75052 ACCESS RULE XXX STORED BY USER002 ON 03/21/22-11:29
$KEY(XXX)
ACF75051 TOTAL RECORD LENGTH= 98 BYTES, 0 PERCENT UTILIZED