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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4.5 IEBCOPY: Compress operation<br />

DATA.SET1<br />

Directory<br />

ABCDF<br />

Member F<br />

Figure 4-7 IEBCOPY compress operation<br />

IEBCOPY compress operation<br />

A partitioned data set will contain unused areas (sometimes called gas) where a deleted<br />

member or the old version <strong>of</strong> an updated member once resided. This unused space is only<br />

reclaimed when a partitioned data set is copied to a new data set, or after a<br />

compress-in-place operation successfully completes. It has no meaning for a PDSE and is<br />

ignored if requested.<br />

The simplest way to request a compress-in-place operation is to specify the same ddname for<br />

both the OUTDD and INDD parameters <strong>of</strong> a COPY statement.<br />

Example<br />

In our example in 4.4, “IEBCOPY: Copy operation” on page 114, the pointers in the<br />

DATA.SET1 directory are changed to point to the new members B and C. Thus, the space<br />

occupied by the old members B and C is unused. The members currently on DATA.SET1 are<br />

compressed in place as a result <strong>of</strong> the copy operation, thereby eliminating embedded unused<br />

space. However, be aware that a compress-in-place operation may bring risk to your data if<br />

something abnormally disrupts the process.<br />

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

A<br />

Unused<br />

B<br />

D<br />

C<br />

After Copy,and<br />

Before Compress<br />

Compress<br />

DATA.SET1<br />

Directory<br />

ABCDF<br />

Member F<br />

A<br />

B<br />

D<br />

C<br />

Available<br />

After Copy,and<br />

After Compress

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

Saved successfully!

Ooh no, something went wrong!