In this example, a partitioned data set is converted to a PDSE.
//CONVERT JOB ...
//STEP1 EXEC PGM=IEBCOPY
//SYSPRINT DD SYSOUT=A
//SYSUT1 DD DSNAME=PDSSET,DISP=SHR,DSNTYPE=PDS
//SYSUT2 DD DSNAME=PDSESET,LIKE=PDSSET,DSNTYPE=LIBRARY,
// DISP=(NEW,CATLG),STORCLAS=SCLASX,DATACLAS=DCLASY
The control statements are discussed below:
- SYSUT1 DD defines the input data set, PDS, which is a partitioned
data set.The DSNTYPE keyword has no effect because it is an existing
data set.
- SYSUT2 DD defines the output data set, PDSE, which is a partitioned
data set extended. This new data set will be SMS-managed because it
has a storage class.
The LIKE parameter indicates that the DCB and
SPACE attributes for PDSESET are to be copied from PDSSET. The DSNTYPE
parameter defines the new data set as a PDSE rather than as a partitioned
data set. DATACLAS=DCLASY identifies the PPDSE as a program object
PDSE with undefined logical record length.
The Storage
Management Subsystem chooses an appropriate volume for the allocation,
based on how SCLASX was defined.
- Since the ddnames "SYSUT1" and "SYSUT2" are used to
define the input and output data sets, no SYSIN data set is required.