You are developing a COBOL program that reads data from an existing file and updates specific records. Which file access mode should you choose for this operation?

  • EXTEND
  • I-O
  • INPUT
  • OUTPUT
In this scenario, the correct file access mode is I-O (Input-Output). This mode allows both reading and updating of records in an existing file. It is suitable for situations where data needs to be read and modified within the same program.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *