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
What is causing the error message:
PDSMDUPD-5 DDNAME ddname DIRECTORY SEQUENCE OR BLOCK IN ERROR
- Determine if data set is actually corrupted
- Wait until all updating job are done
- 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.
- Recover the corrupted data set
- Restore the data set
- Refresh LLA, if data set was LLA-managed
- Identify what corrupted the data set
- 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.