Previous Topic: IDCMCDER18 - Validation is unavailable in a file-owing regionNext Topic: IDCMCEXP02 - A literal cannot be compared to a literal


IDCMCEXP01 - An alphanumeric literal must be compared to an alphanumeric expression

Reason:

If one operand in a relational expression is an alphanumeric literal, it can only be compared to an alphanumeric expression.

Action:

Change the expression to a string expression so that the type of expression matches the type of the literal. Alternately, change the type of the literal to a numeric literal (to correspond with a numeric expression). Do not use conditional or boolean expressions in comparison to the keywords TRUE and FALSE: rather, the conditional expression should always be evaluated on its own.