In a COBOL program, you are required to maintain an employee database with records that can be accessed randomly. Which file access mode and organization should you select?
- Dynamic access mode, Indexed organization
- Random access mode, Indexed organization
- Random access mode, Relative organization
- Sequential access mode, Line-Sequential organization
For random access to records in a database, the Random access mode with Indexed file organization is suitable. This allows direct access based on a key value.
Loading...
Related Quiz
- When dealing with large datasets, how can you minimize the impact of disk I/O on performance in COBOL?
- When should you typically start debugging a COBOL program?
- When working with VSAM and ISAM files, the _____ clause defines the organization of the file.
- How does the OCCURS clause contribute to memory management and efficiency in COBOL?
- In COBOL, the INDEXED BY phrase is used to create a(n) ____________.