The CA IDMS CV always readies the log area in retrieval mode. Only the log archive job will ready the area in update mode. If an archive job fails, the area is left locked and subsequent ARCHIVE LOG commands will return the 0966 error status.
Resolution
To resolve the error the SYSTEM.DDLDCLOG area needs to be unlocked before archiving the log.