Why am I observing the error PDSMDUPD-5 DDNAME ddname DIRECTORY SEQUENCE OR BLOCK IN ERROR ?

Document ID : KB000011134
Last Modified Date : 14/02/2018
Show Technical Document Details
Introduction:

The message indicates the directory of the library corresponding to ddname is out of sequence or contains invalid data in at least one directory block

Question:

What is causing the error message:

PDSMDUPD-5 DDNAME ddname DIRECTORY SEQUENCE OR BLOCK IN ERROR

Answer:
  1. Determine if data set is actually corrupted

    1. Wait until all updating job are done

    2. Use PDSM13 utility with PARM=MAP.

      If errors are NOT reported, the data set is not corrupted. A read and update process overlapped and the read process got bad data as the update was changing data at the same time. If errors ARE reported, the data set is corrupted.

  2. Recover the corrupted data set

    1. Restore the data set

    2. Refresh LLA, if data set was LLA-managed

  3. Identify what corrupted the data set

    1. Most of the time a corrupted data set will be due to an update process not serializing the data set. After you have recovered the data set, you should get an $UPDATE rule with ENQCHECK=W created (or just add ENQCHECK=W if $UPDATE rule already exists). ENQCHECK=W will cause PDSMAN to check every STOW for a proper enqueue. If the enqueue is not present, PDSMAN will issue a PDSM021-10 message and let the job continue.