Each base or delta library can be an OS partitioned data set (PDS or PDS/E), a Panvalet data set, a Librarian data set, or a self-reorganizing ELIB data set. See File Definition and Maintenance.
There are a few options to have the BASE, DELTA and OUTPUT libraries created, but these two are the most recommended:
Option 01:
You can use the EXISTING Base, Delta and Output libraries from another system, as a model to create your new set of datasets.
In order to achieve that, do the following:
Name . . . . . . .
Name . . . . . . .
Option 02:
You can use below IEFBR14 JCL sample to allocate empty BASE, DELTA and OUTPUT libraries, based on your site's implementation.
//*
//*************************************************
//** ALLOCATE BASE, DELTA and OUTPUT libraries
//*************************************************
//ALLOC EXEC PGM=IEFBR14
//DD1 DD DSN=datasetname,
// DISP=(NEW,CATLG),
// DCB=(LRECL=xx,RECFM=xx,BLKSIZE=xxxxx),
// UNIT=xxxxx,DSORG=xx,
// SPACE=(CYL,(x,xx)),DSNTYPE=xxxxx
To have more datasets created, simply duplicate DD1 and change the names to DD2, DD3, and so on.
//*
//*************************************************
//** ALLOCATE BASE, DELTA and OUTPUT libraries
//*************************************************
//ALLOC EXEC PGM=IEFBR14
//DD1 DD DSN=datasetname,
// DISP=(NEW,CATLG),
// DCB=(LRECL=xx,RECFM=xx,BLKSIZE=xxxxx),
// UNIT=xxxxx,DSORG=xx,
// SPACE=(CYL,(x,xx)),DSNTYPE=xxxxx
//DD2 DD DSN=datasetname,
// DISP=(NEW,CATLG),
// DCB=(LRECL=xx,RECFM=xx,BLKSIZE=xxxxx),
// UNIT=xxxxx,DSORG=xx,
// SPACE=(CYL,(x,xx)),DSNTYPE=xxxxx
//DD3 DD DSN=datasetname,
// DISP=(NEW,CATLG),
// DCB=(LRECL=xx,RECFM=xx,BLKSIZE=xxxxx),
// UNIT=xxxxx,DSORG=xx,
// SPACE=(CYL,(x,xx)),DSNTYPE=xxxxx
Also, if SMS is active, you can use the LIKE option to copy a dataset DCB. More info at LIKE parameter at the z/OS MVS JCL Reference.
Note: In case you decide to use ELIBs, please follow the instructions at Setting Up ELIB Data Sets.
Remember ELIBS must be initialized.