Multiple choice technology mainframe

Which all modes of opening is required when WRITE is used?

  1. Input

  2. Output

  3. Input-Output

  4. Extend

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

In COBOL, the WRITE operation requires the file to be opened in OUTPUT mode (for creating new records in a new file) or INPUT-OUTPUT mode (for updating existing records in indexed or relative files). INPUT mode is only for reading, and EXTEND is for adding records to the end of an existing file.