In COBOL, what is the purpose of the ACCESS MODE clause when working with relative files?

  • DYNAMIC
  • KEY
  • RANDOM
  • SEQUENTIAL
The ACCESS MODE clause in COBOL specifies how records in a relative file are accessed. RANDOM allows direct access to records based on the record number. This is useful when individual records need to be retrieved without the need to read sequentially through the file.
Add your answer
Loading...

Leave a comment

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