Any company who has used an IBM i, or any other server, find that over time the amount of free disk space becomes an issue. Most of the reduction in free disk space can probably be explained by the amount of data being added to files. This makes a need for regular data purges a necessity. But how many also consider purging unused objects from their servers?
As part of regular maintenance of the applications I am responsible for I purge objects that have not been used in the past two years. I do this for two reasons:
- If I need to make a mass change I only have to be concerned with objects that are being used.
- By removing objects that are not used the size of the library is kept to a minimum. Therefore, the time to save the library as part of the daily save is
kept to a minimum.
Once I identify an object that has not been used in that time I move it from the "live" library to an "archive" library, if there is a source member for the object I move it to the a source file in the "archive" library too.
When the purging has been completed the "archive" library can be backed up to tape, and then the library can be deleted from the IBM i. The tape of the save of the "archive" library is stored in a fire proof safe, or equivalent, on site. If any of the purged objects are needed they can be restored from the tape.
So how do you identify when objects were last used?