11.01.2013 Views

ABCs of z/OS System Programming Volume 3 - IBM Redbooks

ABCs of z/OS System Programming Volume 3 - IBM Redbooks

ABCs of z/OS System Programming Volume 3 - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

4.2 IEBCOMPR utility<br />

Example 1<br />

Example 2<br />

Directory 1<br />

ABCDGL<br />

Directory 1<br />

ABCFHIJ<br />

Figure 4-2 IEBCOMPR utility example<br />

IEBCOMPR utility<br />

IEBCOMPR is a data set utility used to compare two sequential data sets, two partitioned<br />

data sets (PDS), or two PDSEs, at the logical record level, to verify a backup copy. Fixed,<br />

variable, or undefined records from blocked or unblocked data sets or members can also be<br />

compared. However, you should not use IEBCOMPR to compare load modules.<br />

Two sequential data sets are considered equal (that is, are considered to be identical) if:<br />

► The data sets contain the same number <strong>of</strong> records<br />

► Corresponding records and keys are identical<br />

Two partitioned data sets or two PDSEs are considered equal if:<br />

► Corresponding members contain the same number <strong>of</strong> records<br />

► Note lists are in the same position within corresponding members<br />

► Corresponding records and keys are identical<br />

► Corresponding directory user data fields are identical<br />

If all these conditions are not met for a specific type <strong>of</strong> data set, those data sets are<br />

considered unequal. If records are unequal, the record and block numbers, the names <strong>of</strong> the<br />

DD statements that define the data sets, and the unequal records are listed in a message<br />

data set. Ten successive unequal comparisons stop the job step, unless you provide a routine<br />

for handling error conditions.<br />

110 <strong>ABCs</strong> <strong>of</strong> z/<strong>OS</strong> <strong>System</strong> <strong>Programming</strong> <strong>Volume</strong> 3<br />

PDSE1 PDSE2<br />

Directory 2<br />

ABCDEFG<br />

HIJKL<br />

PDSE1 PDSE2<br />

Directory 2<br />

ABFGHIJ

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!