The compare function is invoked by the execution of the GVRESTOR program and use of a COMPARE control statement instead of a RESTORE. The remainder of the control statements is exactly the same as a RESTORE. The backup record and disk record are compared to ensure exact content and length. As processing continues, end of file is tested to make sure the same number of records is on the backup as was originally on disk. If any mismatches occur, a message describing the type of discrepancy is printed and the contents of the records involved are dumped.
When COMPARE is run immediately after an export, the accuracy and completeness of the backup are assured. Also, it is essential as a double check mechanism when certain warning messages are issued during an export.
Note: Compare can not be used with files exported using SAVECOMP.
|
Copyright © 2011 CA.
All rights reserved.
|
|