z/OS DFSMS Using Data Sets
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Converting PDSs to PDSEs and Back

z/OS DFSMS Using Data Sets
SC23-6855-00

You can use IEBCOPY or DFSMSdss COPY to convert PDSs to PDSEs. You can convert the entire data set or individual members, and also back up and restore PDSEs. PDSEs can be converted back to PDSs. When copying members from a PDS load module library into a PDSE program library, or vice versa, the system invokes the program management binder.

To copy one or more specific members using IEBCOPY, use the SELECT control statement. In this example, IEBCOPY copies members A, B, and C from USER.PDS.LIBRARY to USER.PDSE.LIBRARY.
   //INPDS   DD  DSN=USER.PDS.LIBRARY,DISP=SHR
   //OUTPDSE DD  DSN=USER.PDSE.LIBRARY,DISP=OLD
   //SYSIN   DD  DD *
             COPY OUTDD=OUTPDSE
             INDD=INPDS
             SELECT MEMBER=(A,B,C)
This DFSMSdss COPY example converts all PDSs with the high-level qualifier of "MYTEST" on volume SMS001 to PDSEs with the high-level qualifier of "MYTEST2" on volume SMS002. The original PDSs are then deleted. If you use dynamic allocation, specify INDY and OUTDY for the input and output volumes. However, if you define the ddnames for the volumes, use the INDD and OUTDD parameters.
   COPY DATASET(INCLUDE(MYTEST.**)   -
                 BY(DSORG = PDS))    -
                 INDY(SMS001)        -
                 OUTDY(SMS002)       -
                 CONVERT(PDSE(**))   -
                 RENAMEU(MYTEST2)    -
                 DELETE
If you want the PDSEs to retain the original PDS names, use the TSO RENAME command to rename each PDSE individually. (You cannot use pattern-matching characters, such as asterisks, with TSO RENAME.)
   RENAME (old-data-set-name) (new-data-set-name)
If you want to rename all the PDSEs at once, use the access method services ALTER command and run a job:
   ALTER MYTEST2.* NEWNAME(MYTEST.*)

Related reading: SeeCopying a PDSE or Member to Another Data Set for more about copying between PDS and PDSE with IEBCOPY. See z/OS DFSMSdfp Storage Administration for information about using DFSMSdss and z/OS DFSMSdfp Utilities for information about using IEBCOPY to convert PDSs to PDSEs.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014