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.
Loading...
Related Quiz
- In COBOL, which intrinsic function is employed to calculate the square root of a numeric value?
- What does the CLOSE verb in COBOL primarily do for an open file?
- What is the purpose of using SORT and MERGE operations in COBOL when working with files containing duplicate records?
- Explain the concept of file ________ and how it is managed when multiple users access VSAM and ISAM files in COBOL.
- How is encapsulation achieved in Object-Oriented COBOL?