Multiple choice technology mainframe

WS-TAX-IN PIC 9(4) VALUE '1234'. WS-TAX-OUT PIC 9(3). MOVE WS-TAX-IN TO WS-TAX-OUT. What is the value WS-TAX-OUT contain?

  1. 234

  2. 123

  3. 1234

  4. 0

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

When moving a larger numeric field to a smaller one in COBOL, truncation occurs from the LEFT. Moving '1234' (PIC 9(4)) to a PIC 9(3) field keeps only the rightmost 3 digits, giving '234'. This is standard COBOL behavior for numeric moves where the target field is too small.