Mainframe: Tricky JCL Question – Answer

Read my Question here. For your quick reference I have given my question and answer as below.

How to delete an input dataset using IEBGENER utility?

In the input file, you need to give DISP= (OLD,DELETE). For output file, you need to give DD DUMMY.

After executing the JOB with IEBGENER utility, the input file will be deleted successfully.

//              DD  DSNAME=TEST.INPUT 
//              DISP=(OLD,DELETE)

Also read

Author: Srini

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