You are working on a COBOL program that needs to read and update customer records stored in a VSAM file. What file organization would you choose, and why?
- Entry Sequenced Organization
- Keyed Sequential Organization
- Line Sequential Organization
- Relative Organization
For reading and updating specific records in a VSAM file, Keyed Sequential Organization is preferred. It allows efficient direct access to records based on a key, enabling faster retrieval and updates compared to other file organizations.
Loading...
Related Quiz
- You are working on a COBOL program to store and manipulate a list of customer IDs. Which data structure would you choose between an array and a table, and why?
- How does the CONTINUE statement impact the flow of control in a COBOL program?
- Explain how COBOL handles file locking and multi-user access when using the "I-O" mode.
- You are developing a COBOL application that handles a large inventory database accessed by multiple users. What type of file locking strategy would you recommend to ensure data integrity while allowing concurrent reads?
- The _____ statement in COBOL is commonly used to handle variable-length records based on a condition.