Determining the objects that are not saved is just as important as determining the objects that the server saved. The server may not save an object for two basic reasons:
When the server cannot save an object, the server skips that object and writes an entry to the job log. Verifying the job logs that the server creates by your save procedures is very important. If you have very large save operations, you may want to develop a program that copies the job log to a file and analyzes it.
You can specify OUTPUT(*OUTFILE) INFTYPE(*ERR) on the SAVLIB, SAVOBJ, and SAVCHGOBJ commands. This creates an output file that only contains entries for those objects that the server did not save. Refer to the on-line command help for more information about the specific command.
Periodically verify your backup strategy by the following methods:
Use the information in the object description to determine when the server last saved the object. Base your method for doing this according to your save strategy. If you save entire libraries, you can verify the save date for every library on the server. If you save individual objects, you need to verify the save date for objects in all user libraries.
To verify save dates for libraries, you can do the following:
DSPOBJD OBJ(QSYS/*ALL) OBJTYPE(*LIB) + OUTPUT(*OUTFILE) + OUTFILE(library-name/file-name)
You can use a similar technique to check when the server last saved objects in a specific library.