Which COBOL statement is commonly used to capture and handle exceptions that occur during file operations?

  • EXCEPTION-CONDITION
  • FILE STATUS
  • ON ERROR
  • TRY-CATCH
The FILE STATUS clause in COBOL is commonly used to capture and handle exceptions that occur during file operations. It provides information about the status of the file operation, allowing the program to take appropriate actions in case of errors.
Add your answer
Loading...

Leave a comment

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