A PDS is created with a Data Set Organization of PO , (DSORG=PO), which stands for partitioned organization.
Creating PDS using 3.2 option
Directory blocks . . 20
Data set name type : PDS
However a PDS have certain disadvantages:
1. When we delete a member from a PDS, the space remains unused. We need to compress the PDS using 'Z' at the command line , or we can use IBM utility IEBCOPY to reclaim the unused space.
2. Also as we know, a PDS internally contains a directory. As the size of the PDS grows, ie, as we add more and more members into the pds, the directory size gets near to the threshold (This Directory size we give when we define a PDS), after which we can not add any more members in the PDS.
Then we need to copy all the members into a new PDS with increased Directory size.
PDSE ( partitioned data set extended ): Exactly same as PDS in many respects.
However , PDSE data sets can be stored only on DASD, not on tape. Interesting thing is the directory can expand automatically as needed. Additionally it has an index which helps to locate the members inside the PDSE faster . SPACE from deleted members are automatically reused in PDSE .
PDSE files have DSORG=PO and DSTYPE=LIBRARY.
JCL to create PDS
//ALLOC EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=A
//SYSIN DD *