Tricky JCL Question asked on IEBGENER utility

IEBGENER is a popular utility in Mainframe JCL. Saample 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

Advertisements

Author: Srini

Experienced software developer. Skills in Development, Coding, Testing and Debugging. Good Data analytic skills (Data Warehousing and BI). Also skills in Mainframe.

2 thoughts

Comments are closed.