Example: Find all damaged objects in the "root" (/), QOpenSys, and mounted user-defined file systems

In this situation, a disk failure has caused damage to a number of objects. You must identify the damaged objects before determining how to properly recover them.

You need a solution that allows you to identify the damaged objects, but not take action against them. You must not disrupt normal file system operations.

To identify the damaged objects, use this command:

RCLLNK OBJ('/') SUBTREE(*ALL) DMGOBJOPT(*KEEP *KEEP)

In addition, this command will also correct problems other than damaged objects as it identifies damaged objects.