Cybersecurity
DevOps Cloud (ADM)
IT Operations Cloud
Is there a way to identify "who" is locking a record/file in Visual COBOL?
In ACUCOBOL there is "C$LOCKPID" to do just that
In RM/COBOL there is "C$OSLockInfo" to do the same.
Use the command: wholock
wholock
Usage: wholock [options] file_path
Options:
-v -V Enable verbose mode
-l -L Prints out list of processes that are using the file
-R[m] Semaphore file before checking for locks
- m = S use strict file locking (default)
- m = N no strict file locking
-h -H Prints out this help message
file_path: Path to file