Error: ACFAB046 Invalid parameter value for keyword when compiling DATASET profile records
search cancel

Error: ACFAB046 Invalid parameter value for keyword when compiling DATASET profile records

book

Article ID: 448177

calendar_today

Updated On:

Products

ACF2

Issue/Introduction

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

Environment

ACF2 16.0

Cause

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.

Resolution

To successfully store the compiled profile record, exit the compiler mode before issuing the STORE command.

From ACF2 prompt:

  1. Enter all required control statements (e.g., $KEY).
  2. Enter the rule lines/parameters (e.g., - DFP(####)).
  3. Hit Enter twice:
    • Once after the last rule line to reach the prompt.
    • Once on the blank line (the period . prompt) to exit the compiler mode.
  4. Once returned to the PROFILE or ACF prompt, type STORE and press Enter.

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.

Additional Information

For more details on compiler usage refer Process Resource Rule Sets