Detecting batch logging error conditions
If CICS® VR detects a problem with the MVS system logger, CICS VR attempts to trap the error and issue a 3999 condition code. The 3999 condition code indicates that no batch logging occurred for that sphere.
If this message is issued when forward recovery logging is enabled, you might want to consider taking a backup of your spheres because you can not forward recover updates made after logging fails.
Diagnosing logging problems discusses the different types of problems that might occur. It also show examples of conditional JCL that you can add to your batch jobs to detect the 3999 condition code from CICS VR VSAM batch logging and trigger a DFSMShsm backup or DFSMSdss dump.