opensource COBOL 4J 1.1.12 or later supports locking of INDEXED files. We should implement locking of SEQUENTIAL files and RELATIVE files.