What is the purpose of file locking in COBOL when dealing with multi-user access?

  • To compress files and reduce storage space
  • To increase the speed of file access in a multi-user environment
  • To prevent conflicts and ensure data integrity by allowing only one user to update a record at a time
  • To restrict access to specific files based on user permissions
File locking in COBOL is used to prevent conflicts and maintain data integrity in a multi-user environment. It ensures that only one user can update a record at a time, avoiding issues such as data corruption or inconsistencies.
Add your answer
Loading...

Leave a comment

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