Recovering the association of objects to the authorization list

Follow the steps in this topic to recover the association of objects to the authorization list.

When the damaged authorization list is deleted, the objects that were secured by the authorization list need to be added to the new authorization list. Do the following actions:

  1. Find the objects that were associated with the damaged authorization list by using the Reclaim Storage (RCLSTG) command. Reclaim storage assigns the objects that were associated with the authorization list to the QRCLAUTL authorization list.
  2. Use the Display Authorization List Objects (DSPAUTLOBJ) command to list the objects that are associated with the QRCLAUTL authorization list.
  3. Use the Grant Object Authority (GRTOBJAUT) command to secure each object with the correct authorization list:
    GRTOBJAUT OBJ(library-name/object-name) +
              OBJTYPE(object-type) +
              AUTL(authorization-list-name)

If a large number of objects are associated with the QRCLAUTL authorization list, create a database file by specifying OUTPUT(*OUTFILE) on the DSPAUTLOBJ command. You can write a CL program to run the GRTOBJAUT command for each object in the file.