What is the purpose of the ACCESS MODE clause when defining an indexed file in COBOL?
- DYNAMIC and RANDOM
- RANDOM and SEQUENTIAL
- SEQUENTIAL and DYNAMIC
- SEQUENTIAL only
The ACCESS MODE clause in COBOL specifies how the file will be accessed. RANDOM allows both direct and sequential access, while SEQUENTIAL allows only sequential access. Combining them provides flexibility in file access methods.
Loading...
Related Quiz
- In a COBOL project, you have a common calculation that is used in multiple programs. How can you efficiently reuse this calculation using subprograms?
- When dealing with VSAM and ISAM files, it's important to implement proper ________ strategies to avoid data inconsistencies.
- When might you use the SORT operation in a COBOL program?
- How can you ensure that a variable retains its value between multiple program invocations in COBOL?
- You are working on a COBOL program that performs a merge operation on two sorted files. How can you ensure that the merge operation is efficient and optimized for performance?