IEFBR14 Allocate Datasets
IEFBR14 is used to create or allocate empty datasets. The dataset can be either a Sequential file (PS) or Partitioned Dataset (PDS). ISPF foreground option 3.2 (Data Set Utility panel) is also used to create the datasets. However, the IEFBR14 utility is mostly used to create the datasets as part of a PROD batch run.
The disposition (DISP) to catalog the dataset is DISP=(NEW,CATLG,DELETE).
Syntax -
...
//STEP1 EXEC PGM=IEFBR14
//DD1 DD DSN=datset.name,DISP=(NEW,CATLG,DELETE),
...
- DISP=(NEW,CATLG,DELETE) - Specifies to create a new dataset.
Practical Example -
Scenario - Create a PS file using the IEFBR14 utility.
JCL -
----+----1----+----2----+----3----+---4----+---5---+
...
//STEP01 EXEC PGM=IEFBR14
//DD1 DD DSN=MATEPK.IEFBR14.PSFILE,
// DISP=(NEW,CATLG,DELETE),
// SPACE=(TRK,(3,2),RLSE),
// UNIT=SYSDA,VOLUME=SER=DEVHD4,
// DCB=(DSORG=PS,RECFM=FB,LRECL=80,BLKSIZE=800)
...