Multiple choice technology mainframe

01 WS-CHECK PIC X 88 TCS VALUE Y . . . MOVE 'T' TO WS-CHECK IF TCS DISPLAY 'T' ELSE DISPLAY 'X' END-IF What will be the output?

  1. X

  2. Y

  3. T

  4. S

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The 88 level name TCS is a condition that evaluates true only when WS-CHECK equals 'Y'. The code moves 'T' to WS-CHECK, then checks IF TCS (i.e., is WS-CHECK = 'Y'? Since WS-CHECK is 'T', this condition is false). Therefore, the ELSE branch executes, displaying 'X'. Condition names are not executed, they're just evaluated.