Your COBOL application needs to create a new file and write data to it. Which file access mode should be used for this purpose?

  • EXTEND
  • I-O
  • INPUT
  • OUTPUT
For creating a new file and writing data to it, the correct file access mode is OUTPUT. This mode is used to write records to a file and create a new file if it does not exist. It does not allow reading or updating existing records.
Add your answer
Loading...

Leave a comment

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