When attempting to create or compile DATASET PROFILE records for dataset encryption in ACF2 for z/OS, the compiler terminates with an error.
The following error occurs after entering the STORE command:
ACFAB046 3 INVALID PARAMETER VALUE FOR KEYWORD - SEGMENT COMPILER TERMINATING
Compiler source code as follows:
SET PROFILE(DATASET) DIVISION(PROFILE)
PROFILE
COMPILE *
ACFAB010 ACF PROFILE COMPILER ENTERED
. $KEY(####)
. *.####.####-.- DFP(####.####)
. store
The number '3' in the error message refers to the line number in the source input where the compiler encountered the error:
Line # 1 . $KEY(####)
Line # 2 . *.####.####-.- DFP(####.####)
Line # 3 . store
indicating an issue with the store command
ACF2 16.0
The STORE command is entered while the ACF profile compiler is still active.
The compiler interprets STORE as a rule entry or an invalid parameter within the profile segment, leading to the ACFAB046 failure.
To successfully store the compiled profile record, exit the compiler mode before issuing the STORE command.
From ACF2 prompt:
In batch:
COMPILE *
$KEY(####)
*.####.####-.- DFP(####.####)
<= blank line
STORE
The blank line preceding STORE will ensure that the STORE command is issued after compiler mode has been exited.
For more details on compiler usage refer Process Resource Rule Sets