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')
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'))