C$OSLockInfo not works with MF format files

We use C$OSLockInfo rutine to know which process is blocking one register file; the rutine returns the PID. It works OK with RM files format, but when we use it with MF files format, the rutine returns all 0.

Should we use the rutine in a diferent way when we use it with MF format files? Maybe we have to use another tool to get this information?

Thank you

Parents
  • Hello mikmng,

    Thanks for posting your question on the Micro Focus Community Site. To better help you, could you let us know which Micro Focus product and version you're using, and the Operating System and platform?

    On Unix platforms under Server Express and Visual COBOL Development Hub, there is a utility named 'wholock' that can be used to determine which process is holding a lock on a certain file. The most basic way to invoke it is:

        wholock filename

    Please let me know if this helps, and if not, the requested version and platform info.

Reply
  • Hello mikmng,

    Thanks for posting your question on the Micro Focus Community Site. To better help you, could you let us know which Micro Focus product and version you're using, and the Operating System and platform?

    On Unix platforms under Server Express and Visual COBOL Development Hub, there is a utility named 'wholock' that can be used to determine which process is holding a lock on a certain file. The most basic way to invoke it is:

        wholock filename

    Please let me know if this helps, and if not, the requested version and platform info.

Children
No Data