Skip to main content

How to find out who locks a file?

  • February 15, 2013
  • 0 replies
  • 0 views

Problem:

When you have say about 3000 ints and 50 users. It can happen that a file in I/O is locked.

How can you find out in the runtime who locks the file or which runtime process as you could kill all but that's not very user friendly.

Resolution:

There is a tool in Server Express which is not documented (yet). It's called 'wholock'.

It's quite simple to use:

wholock filename

dfed filename

This opens the file in the data file editor

Then use the command:

wholock /support/cmc/filename

result:

Process 15098 (cmc) on tty pts/4 holds 1 read and 1 write locks

Old KB# 4528

#ServerExpress
#RMCOBOL
#netexpress
#AcuCobol
#COBOL