Multiple choice technology mainframe

For successful execution of REWRITE stmt, the direct access file must be opened in _____ mode.

  1. I

  2. O

  3. I-O

  4. O-I

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

REWRITE updates existing records in a file, requiring both read and write access. I-O mode permits reading a record, modifying it, and writing it back to the same position. I or O modes alone are insufficient for REWRITE operations.