EQA1697E Conditional Expression Conditional_Logic_Expression in WHEN clause cannot be evaluated at current location.
Explanation
The conditional expression is not valid. Make sure the variable is known in current compile unit or that the attributes are compatible.