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.
Loading...
Related Quiz
- _____ is a key concept in Object-Oriented COBOL that restricts access to certain data and methods to only within the class.
- The FUNCTION _______ intrinsic function is utilized to obtain the integer portion of a numeric value.
- How is a national (Unicode) character data type defined in COBOL?
- Your COBOL program interacts with external devices, and you want to handle errors gracefully without abruptly ending the program. Which statement is suitable for this scenario?
- In COBOL, what is the difference between a data item defined in the WORKING-STORAGE section and a data item defined in the FILE SECTION?