In a multi-user COBOL application, two users are attempting to update the same record in a file simultaneously. How can you prevent conflicts and ensure that only one user can update the record at a time?

  • Apply transaction rollback on conflicts
  • Enable file versioning
  • Implement record-level locking
  • Use a semaphore mechanism
To prevent conflicts when multiple users are updating the same record simultaneously, implementing record-level locking is crucial. This ensures that only one user can update the record at a time, avoiding conflicts and maintaining data consistency.
Add your answer
Loading...

Leave a comment

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