What is the purpose of the ACCESS MODE clause when defining an indexed file in COBOL?

  • DYNAMIC and RANDOM
  • RANDOM and SEQUENTIAL
  • SEQUENTIAL and DYNAMIC
  • SEQUENTIAL only
The ACCESS MODE clause in COBOL specifies how the file will be accessed. RANDOM allows both direct and sequential access, while SEQUENTIAL allows only sequential access. Combining them provides flexibility in file access methods.
Add your answer
Loading...

Leave a comment

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