Converting PDS to PDSE


Summary

For basic information, go through the IEBCOPY Utility (for Beginners)

  • IEBCOPY can be used to convert PDS to PDSE.
  • To convert a PDS to a PDSE, create a PDSE and copy the partitioned data set into the new PDSE. This task can accomplish with one use of IEBCOPY.

Practical Example -


Scenario - Convert PDS to PDSE.

JCL -

----+----1----+----2----+----3----+----4----+----5----+----6----+----7--
***************************** Top of Data ******************************
//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                                  
**************************** Bottom of Data ****************************

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.