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.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *