Use the access method services REPRO command to copy the data
component of the KSDS. Specify the data component name (not the cluster
name) in the REPRO INFILE parameter. See the
chapter describing functional command format in z/OS DFSMS Access Method Services Commands for
details about the REPRO command.
Use a sort utility to sort the copied file. This eliminates any
duplicate keys that might exist in the file.
DELETE and re-DEFINE the damaged cluster.
REPRO from the sorted file to the newly defined cluster. Record
management rebuilds the index component.
Note:
This method does not work for a catalog or for a keyed cluster
containing spanned records.
Processing performed against the data set after initial index
damage occurs will corrupt the data set content. This method is an
attempt to recover as much as possible of the data set. If a backup
copy of the data set exists, it may contain more desirable data set
content than available by this method.