When using the OPEN verb in COBOL, what is the primary purpose of specifying the ACCESS MODE clause?

  • To allocate storage space for the file
  • To define the file's record length
  • To define the type of access allowed for the file (SEQUENTIAL or RANDOM)
  • To specify the file organization (SEQUENTIAL or INDEXED)
The ACCESS MODE clause in the OPEN verb is used to specify the type of access allowed for the file. It determines whether the file will be accessed sequentially or randomly.
Add your answer
Loading...

Leave a comment

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