Tricky JCL Question asked on IEBGENER utility

Posted by

IEBGENER is a popular utility in Mainframe JCL. Sample JCL is given for your reference and by using this utility you can delete an input data set.

The same question asked in an interview.

How to delete a dataset in batch job?

  • Answer is using IEBGENER utility

IEBGENER-JCL Utility

//S1       EXEC PGM=IEBGENER 
//SYSUT1 DD DISP=SHR,DSN=input dataset
//SYSUT2 DD DISP=(,CATLG,DELETE),
// DSN=output dataset,
// DATACLAS=SEQ80
//SYSPRINT DD SYSOUT=*
//SYSIN DD *

Also read

2 comments

Comments are closed.