Programs with CASE statements that contain brackets around the associated field name fail to compile with message
EZTC0124E >>> $ fieldname expected
This occurs when the field names on a CASE statement are enclosed in parenthesis:
OFILEA-CLASS(WS-COUNTER) = 'N'
OFILEA-CLASS(WS-COUNTER) = 'Y'
OFILEA-CLASS(WS-COUNTER) = '?'
How may I resolve this?
Release 11.6 does adhere more to the correct syntax than the prior releases and uses a different compiler to do so.
The documentation does support no parenthesis on the CASE statement:
The parenthesis do need to be removed. This is the resolution to resolving the EZTC0124E error message as CA Easytrieve is parsing the code as designed.