Skip to main content

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


#SupportTips/KnowledgeDocs

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


#SupportTips/KnowledgeDocs

where is the wholock command located or where to get it? I have VC80 installed and I can't find it.
Regards