In COBOL file handling, what is the purpose of the "Extend" access mode?
- It allows sequential reading of records
- It enables direct access to any record in the file
- It is used to add new records at the end of a file
- It is used to open a file for both reading and writing
The "Extend" access mode in COBOL is used to add new records at the end of a file. It is particularly useful when you want to append data to an existing file without overwriting or modifying the existing records.
Loading...
Related Quiz
- How is an indexed file different from a sequential file in COBOL?
- 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 _____ clause allows a variable to be shared among multiple programs in a COBOL application.
- In COBOL, the _____ clause is used to specify the action to be taken when a file operation results in an exception condition.
- Why are COBOL group data items used in program design?