How to write ACF2 rules to validate files in CICS
Use the resource type based on the CICSKEY parameter.
The $KEY value needs to be the DDNAME that was specified when the file/dataset was created by CICS Resource definition (RDO) . The define panel in the CEDA CICS transaction specifies DSNAME and FILE name. The DSNAME is the dataset name and FILE is the DDNAME referenced in the CICS JCL.
For example, in the CEDA transaction, if creating a file definition for DDNAME PAYTEST which is DATASET TEST.MASTER.FILE;
FILE(PAYTEST) DSNAME(TEST.MASTER.FILE)
The $KEY of the ACF2 resource rule would look like:
$KEY(PAYTEST) TYPE(CFC)