You have either tried to exceed the maximum number of simultaneous record locks per file you can have, or you have exhausted
an operating system or network resource; for example dynamic memory.
Resolution:
Execute a COMMIT or an UNLOCK operation on the relevant file and you should then be able to continue to run your program.
You should try not to retain a record lock for longer than is necessary.