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

Leave a comment

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