Applying maintenance to the HFS file

To apply maintenance to an HFS file, create a file with a new data set name by using the DFDSS DUMP/RESTORE facility and copy the content of the HFS file that you want to maintain, to it. Mount the created HFS file at a service point (for example, /SERVICE), apply the maintenance, and test it. If the test completes successfully, unmount the original HFS file and mount the tested file at the original mount point. In this way, you prevent the file from losing any APF authorization.

If an error occurs while copying the HFS file, a message is displayed warning you that the APF authorization was lost. You can reassign the APF authorization by issuing the following command:
extattr +a /dirname
where dirname is, by default, /usr/lpp/TWS/TWS810/bin.

For more detailed information about how to apply maintenance to the files, see z/OS® UNIX System Services Planning (GA22-7800).