In a COBOL program, you need to write records to a file, and you want to handle write errors gracefully. Which COBOL file control verb allows you to do this?

  • CLOSE
  • REWRITE
  • START
  • WRITE
The REWRITE verb in COBOL is used to rewrite records in a file. It is particularly useful for updating existing records in a file. When used with appropriate error handling techniques, it allows graceful handling of write errors in a COBOL program.
Add your answer
Loading...

Leave a comment

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