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.26 PDSE: Conversion<br />

Using DFSMSdss<br />

COPY DATASET(INCLUDE -<br />

(MYTEST.**) -<br />

BY(DSORG = PDS)) -<br />

INDY(SMS001) -<br />

OUTDY(SMS002) -<br />

CONVERT(PDSE(**))-<br />

RENAMEU(MYTEST2) -<br />

DELETE<br />

Figure 4-36 Converting PDS to PDSE<br />

Converting a PDS data set to a PDSE<br />

You can use IEBCOPY or DFSMSdss COPY to convert PDS to PDSE, as shown in Figure 4-36.<br />

We recommend using DFSMSdss.<br />

You can convert the entire data set or individual members, and also back up and restore<br />

PDSEs. By using the DFSMSdss COPY function with the CONVERT and PDS keywords, you<br />

can convert a PDSE back to a PDS. This is especially useful if you need to prepare a PDSE<br />

for migration to a site that does not support PDSEs. When copying members from a PDS load<br />

module library into a PDSE program library, or vice versa, the system invokes the program<br />

management binder component.<br />

Many types <strong>of</strong> libraries are candidates for conversion to PDSE, including:<br />

► PDSs that are updated <strong>of</strong>ten, and that require frequent and regular reorganization<br />

► Large PDSs that require specific device types because <strong>of</strong> the size <strong>of</strong> allocation<br />

Converting PDSs to PDSEs is beneficial, but be aware that certain data sets are unsuitable<br />

for conversion to, or allocation as, PDSEs because the system does not retain the original<br />

block boundaries.<br />

Using DFSMSdss<br />

In Figure 4-36, the DFSMSdss COPY example converts all PDSs with the high-level qualifier<br />

<strong>of</strong> “MYTEST” on volume SMS001 to PDSEs with the high-level qualifier <strong>of</strong> “MYTEST2” on<br />

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

Using IEBCOPY<br />

//INPDS DD DISP=SHR,<br />

DSN=USER.PDS.LIBRARY<br />

//PDSE DD DSN=USER.PDSE.LIBRARY,<br />

DISP=OLD<br />

//SYSIN DD *<br />

COPY OUTDD=OUTPDSE<br />

INDD=INPDS<br />

SELECT MEMBER=(A,B,C)

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

Saved successfully!

Ooh no, something went wrong!