Converting PDS to PDSE


IEBCOPY can be used to convert a Partitioned Dataset (PDS) to a Partitioned Dataset Extended (PDSE). A PDSE is an extended version of a PDS that offers additional features and benefits, such as improved data organization, support for larger datasets, and better performance for certain operations. To convert a PDS to a PDSE, create a PDSE and copy the PDS into the new PDSE.

Practical Example -


Scenario - Convert PDS to PDSE.

JCL -

----+----1----+----2----+----3----+----4----+----5----+
//MATEPKE  JOB (123),'MTH',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1),
//             NOTIFY=&SYSUID 
//***************************************************
//* CONVERT PDS TO PDSE 
//***************************************************
//STEP10   EXEC PGM=IEBCOPY
//SYSPRINT DD SYSOUT=*
//SYSOUT   DD SYSOUT=*
//SYSDUMP  DD SYSOUT=*
//SYSUT1   DD DSN=MATEPK.IEBCOPY.INPPDS,DISP=SHR
//SYSUT2   DD DSN=MATEPK.IEBCOPY.INPPDSE,
//            LIKE=MATEPK.IEBCOPY.INPPDS,DSNTYPE=LIBRARY,
//            DISP=(NEW,CATLG,DELETE),
//            UNIT=3390,VOL=SER=DEVHD4 

Job Status -

CONVERT PDS to PDSE Output

Output -

CONVERT PDS to PDSE Output

Explaining Example -

  • SYSUT1 DD DSN=MATEPK.IEBCOPY.INPPDS - Specifies the input PDS.
  • SYSUT2 DD DSN=MATEPK.IEBCOPY.INPPDSE - Specifies the PDSE that needs to be created similar to PDS. IEBCOPY copies all the members from input PDS to new PDSE.