In COBOL, what does a relative file allow you to do that a sequential file does not?
- Directly access any record using a record number
- Perform arithmetic operations on file records
- Process records sequentially
- Read records in the order they were added to the file
A relative file in COBOL allows direct access to any record in the file using a record number. This provides the ability to retrieve or modify specific records without the need to sequentially process the entire file.
Loading...
Related Quiz
- In COBOL, what is the difference between the COMP and COMP-3 data types?
- COBOL allows you to define your own _____ in the Procedure Division to encapsulate specific functionality.
- How does inheritance work in Object-Oriented COBOL, and what benefits does it offer?
- What is the purpose of the COBOL Data Division?
- In COBOL, when is the UNTIL condition evaluated in a PERFORM UNTIL loop?