The WRITE verb in COBOL can be used with the ________ clause to handle writing errors.

  • ERROR
  • EXCEPTION
  • FILE STATUS
  • INVALID KEY
In COBOL, the WRITE verb is used to write records to a file. The INVALID KEY clause is used to handle writing errors that may occur during the execution of the WRITE statement. It allows the program to take specific actions when a write operation encounters an error.
Add your answer
Loading...

Leave a comment

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