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.

Note: Load module partitioned data sets that reside on different types <strong>of</strong> devices should<br />

not be compared. Under most circumstances, the data sets will not compare as equal.<br />

A partitioned data set or partitioned data set extended can be compared only if all names in<br />

one or both directories have counterpart entries in the other directory. The comparison is<br />

made on members identified by these entries and corresponding user data.<br />

Recommendation: Use the SuperC utility instead <strong>of</strong> IEBCOMPR. SuperC is part <strong>of</strong><br />

ISPF/PDF and the High Level Assembler Toolkit Feature. SuperC can be processed in the<br />

foreground as well as in batch, and its report is more useful.<br />

Examples <strong>of</strong> comparing data sets<br />

As mentioned, partitioned data sets or PDSEs can be compared only if all the names in one<br />

or both <strong>of</strong> the directories have counterpart entries in the other directory. The comparison is<br />

made on members that are identified by these entries and corresponding user data.<br />

You can run this sample JCL to compare two cataloged, partitioned organized (PO) data sets:<br />

//DISKDISK JOB ...<br />

// EXEC PGM=IEBCOMPR<br />

//SYSPRINT DD SYSOUT=A<br />

//SYSUT1 DD DSN=PDSE1,DISP=SHR<br />

//SYSUT2 DD DSN=PDSE2,DISP=SHR<br />

//SYSIN DD *<br />

COMPARE TYPORG=PO<br />

/*<br />

Figure 4-3 IEBCOMPR sample<br />

Figure 4-2 on page 110 shows several examples <strong>of</strong> the directories <strong>of</strong> two partitioned data<br />

sets.<br />

In Example 1, Directory 2 contains corresponding entries for all the names in Directory 1;<br />

therefore, the data sets can be compared.<br />

In Example 2, each directory contains a name that has no corresponding entry in the other<br />

directory; therefore, the data sets cannot be compared, and the job step will be ended.<br />

Chapter 4. Storage management s<strong>of</strong>tware 111

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

Saved successfully!

Ooh no, something went wrong!