Search code examples
ibm-midrangerpglerpg

Query on object lock on an AS400 physical file


When an object lock happens on an AS400 physical file, is there any possibility to know on which record/data the record lock has happened?


Solution

  • You can use DSPRCDLCK (Display Record Locks) command to view the record locks from command line.

    If you need to access this info in the program, You could try using 'RECORD_LOCK_INFO' (RCD_LOCK) view in QSYS2 library.