Previous Topic: COMPARE GroupNext Topic: Building Alternate Indexes


How COMPARE Works

The following table explains how COMPARE works:

Stage

Action

1

COMPARE uses the same logic paths as RESTORE to deblock and address a record as if it were to be restored.

2

A VSAM sequential GET macro is issued against the cluster, and the disk and backup records are compared.

3

Tests are made to verify the following:

  • Equal length
  • Equal content
  • Equal RRDS slot numbers
  • Same end-of-file points

4

Any discrepancies are reported by message GV906. For more information, see the CA FAVER Message Reference Guide.

Usage Rules

The COMPARE command has the following usage rules:

Samples

The following are sample COMPARE jobs:

Job

Explanation

COMPARE CATALOG EXCLUDE CL=TEST.+

Reads all clusters in the catalog except those that begin with TEST. and compares each record byte for byte.

COMPARE CLUSTER CL=CICS+

Reads all clusters that begin with CICS and compares each record byte for byte.