  Corrupted CMS library? 
 The Question is:
 
We had a DCL.COM file which does a CMS replace followed by an insert gen for
10 elements. Just after the 9th insert the BADLIB and BADTYPSTR errors were
dispalyed. We could access CMS but when CMS commands were directed to one
particular library (PAS_4603
) CMS just displayed errors.
 
We could not find any detail on the error messages and had to have the
library restored from the previous nights backup.
 
We have more than 100 CMS Libraries, each averaging 1,000 - 2,000 elements.
In 6 years I have never lost a library like this. Typically CMS Verify
/Recover and /Repair cleaned up any issues.
 
Below is an example of our dilemma:
 
 
$ SHO SYMBOL PAS4603
  PAS4603 == "CMS SET LIB DISK$CHCS_LIBRARY:[PAS_4603]"
$ PAS4603
%CMS-F-BADLIB, there is something wrong with your library
-CMS-F-BADTYPSTR, header block type is 0; it should be 17
$ PAS4603/NOVER
%CMS-I-LIBIS, library is DISK$CHCS_LIBRARY:[PAS_4603]
%CMS-S-LIBSET, library set
-CMS-I-SUPERSEDE, library list superseded
$ CMS
CMS&gt; SHO VER
CMS Version V3.9-2
CMS&gt; SHO LIB
%CMS-F-BADLIB, there is something wrong with your library
-CMS-F-BADTYPSTR, header block type is 0; it should be 17
 
 
 
 The Answer is:
 
  Please contact the Compaq Customer Support Center for assistance.
  Assuming the VERIFY/REPAIR or similar does not, tools available to
  the CSC may be able to recover the contents of the library.
