You are tasked with designing a COBOL program that needs to access records in an indexed file using a unique key. Which access mode and file organization would you choose, and why?
- Option 1: Dynamic Access, Sequential File Organization
- Option 2: Random Access, Indexed File Organization
- Option 3: Dynamic Access, Indexed File Organization
- Option 4: Sequential Access, Relative File Organization
Dynamic Access with Indexed File Organization would be the appropriate choice. This allows efficient access using a unique key, enabling direct retrieval of records based on the key value. Dynamic access provides flexibility in navigating through the file, making it suitable for scenarios requiring key-based searches.
Loading...
Related Quiz
- In indexed file processing, the use of ____________ keys can enhance the performance of record retrieval operations.
- In VSAM files, what is the role of the Alternate Index (AIX)?
- In a COBOL program, you need to store a date of birth. Which data type should you use to ensure compatibility with international date formats?
- The "AT END" clause is often used in conjunction with the "NOT ON EXCEPTION" clause to handle errors that occur at the _____ of file processing.
- You are writing a COBOL program to calculate the total cost of items in a shopping cart. Which type of COBOL variable would you use to store the individual item prices?