When trying to write to an encrypted dataset, the following message is seen.
Error:
11.28.53 JOB08399 IEC161I 069(00000008,00003E84)-162,Dataset.name,,,Key.label,,CATALOG.ICFUCAT.XXXX
Release : 16.0
Component : ACF2 for z/OS
The return and reason code in the message 00000008,00003E84 means
that access to the CSFKEYS resource (key label) was not allowed.
The CSFKEYS rules were incorrectly written.
WHEN(CRITERIA(SMS(DSENCRYPTION)))
was actually written as
WHEN(CRITERIA(SMS(DSENCYPTION)))
The update of the dataset took place successfully after this was adjusted in the rules.
Note: any value can be placed in the criteria parameter - the syntax is not checked.