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.
//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)
COPY DATASET(INCLUDE(MYTEST.**) -
BY(DSORG = PDS)) -
INDY(SMS001) -
OUTDY(SMS002) -
CONVERT(PDSE(**)) -
RENAMEU(MYTEST2) -
DELETE
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.