What does the CLOSE verb in COBOL primarily do for an open file?

  • Deletes the contents of the file
  • Modifies the file's structure
  • Opens the file for reading or writing
  • Releases resources associated with the file and terminates the connection
The CLOSE verb in COBOL is used to release resources associated with an open file and terminate the connection between the COBOL program and the file. It ensures proper closure and cleanup after file operations.
Add your answer
Loading...

Leave a comment

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