You are developing a COBOL program to read data from a file sequentially. Which file control verb should you use to open the file?

  • CLOSE
  • OPEN
  • READ
  • WRITE
In COBOL, the OPEN verb is used to open a file before reading from or writing to it in a program. This verb establishes the connection between the COBOL program and the external file, allowing subsequent READ or WRITE operations.
Add your answer
Loading...

Leave a comment

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