5.16 I am trying to do a DBLOCK, DBPUT, DBUNLOCK in sequence in a program. However, the DBLOCK fails saying a lock is already in effect. Then the DBPUT fails saying there is no lock in effect. I looked in DBUTIL to see if any locks were held immediately before and after the call to DBLOCK, and no locks are in effect. Any ideas?

DBLOCK can fail when the program does not have MR and locks another file object (like a flat file or a KSAM file). In such a case, DBLOCK fails but DBUTIL shows no locks for the database because the lock is held in the MPE file system, not IMAGE.