ACF49024 SYNTAX ERROR IN PARAMETER FIELD - ACFRPTSL conditional logic using OR
search cancel

ACF49024 SYNTAX ERROR IN PARAMETER FIELD - ACFRPTSL conditional logic using OR

book

Article ID: 224605

calendar_today

Updated On:

Products

ACF2 - z/OS ACF2 - MISC ACF2

Issue/Introduction

When adding more than 1 condition separated by an OR for the ACFRPTSL report, the following error is seen:

The error is ACF49024 SYNTAX ERROR IN PARAMETER FIELD

The SYSIN input is:

PAGEHDR(YES)               
REPORT(SHORT)              
INPUT(ACF2)                
SFLDS(TYPE DEPT GRP)       
DTCFIELD(NO)               
IF(TYPE EQ 'ABC' AND -   
   DEPT EQ 'ACT' AND -   
   GRP  EQ 'GRP1') OR  -   
  (TYPE EQ 'ABC' AND -   
   DEPT EQ 'FIN' AND -   
   GRP  EQ 'GRP2')         

 

Resolution

The entire IF parameter needs to be surrounded by parentheses. Otherwise, the report utility thinks that there is a syntax error on the SYSIN statement since OR is not considered a parameter, rather it is part of the IF statement.

The SYSIN input is:

PAGEHDR(YES)               
REPORT(SHORT)              
INPUT(ACF2)                
SFLDS(TYPE DEPT GRP)       
DTCFIELD(NO)               
IF((TYPE EQ 'ABC' AND -   
   DEPT EQ 'ACT' AND -   
   GRP EQ 'GRP1') OR  -   
  (TYPE EQ 'ABC' AND -   
   DEPT EQ 'FIN' AND -   
   GRP EQ 'GRP2'))