Wikis - Page

Knowledge Doc: Is there a way to identify "who" is locking a record/file?

0 Likes

Situation

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.
 

Resolution

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

read article

Labels:

Support Tips/Knowledge Docs
Comment List
Related
Recommended