Let's understand Mainframe
Home Tutorials Interview Q&A Quiz Mainframe Memes Contact us About us

Module 6: JCL Utilities


IEFBR14

It is nothing but a null or dummy utility. It is used to allocate/delete dataset (PS or PDS). As name suggest it does not provide any functionality thus this can be used in cases where we have to leverage functionality of DD statement. For example deletion of dataset can be a very first step of job to ensure further steps does not fail with reason “Dataset already exist”.

As mentioned above we can use this program to code functions that are commonly available on DD statement such as:-

  • Delete a dataset
  • Catalog a dataset
  • Create a new dataset
  • Uncatalog a dataset

To delete a dataset

//STEPNAME EXEC PGM=IEFBR14 //DDNAME1 DD DSN=DEPT.FILE1, // DISP=(OLD,DELETE) //

To catalog a dataset

//STEPNAME EXEC PGM=IEFBR14 //DDNAME1 DD DSN=DEPT.FILE2, // DISP=(NEW,CATLG) //

To create a new dataset

//STEPNAME EXEC PGM=IEFBR14 //DDNAME1 DD DSN=DEPT.FILE3, // DISP=(NEW,CATLG,DELETE), // UNIT=SYSDA, // SPACE=(CYL(2,2),RLSE), // DCB=(LRECL=80,BLKSIZE=0, // RECFM=FB,DSORG=PS) //

To uncatalog dataset

//STEPNAME EXEC PGM=IEFBR14 //DDNAME1 DD DSN=DEPT.FILE3, // DISP=(OLF,UNCATLG) //






© copyright mainframebug.com
Privacy Policy