This is a rather simple question that has me stumped. How do you check for a particular value in an alphabetic field in COBOL 85? For example, I am using an EVALUATE statement to check for several possible values in an alphabetic field; depending on the value present, I will take one of several possible actions.
Basically, what I'm trying to do is this:
EVALUATE TRUE
WHEN INPUT-FIELD IS EQUAL TO 'L'
MOVE 'LARGE' TO OUTPUT-FIELD
WHEN INPUT-FIELD IS EQUAL TO 'S'
MOVE 'SMALL' TO OUTPUT-FIELD
END-EVALUATE
If anyone could shed some light on this it would be greatly appreciated.