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

Module 7: JCL GDG


Deleting GDG base

  • GDG can be deleted using DELETE command of IDCAMS utility
  • Delete GDG using by passing PURGE in DELETE statement

    PURGE coded in conjunction with DELETE, deletes only GDG index, even if its retention period has not expired

    //DEPTJOB JOB A123,’STEVE’ //STEPNAME EXEC PGM=IDCAMS //SYSIN DD * DELETE (PAYROLL.SALARY.MONTHLY)GDG PURGE /* //


  • Delete GDG using by passing PURGE in DELETE statement

    FORCE coded in conjunction with DELETE, deletes GDG index, the model and all related generation data sets

    //DEPTJOB JOB A123,’STEVE’ //STEPNAME EXEC PGM=IDCAMS //SYSIN DD * DELETE (PAYROLL.SALARY.MONTHLY)GDG FORCE /* //

    PURGE coded in conjunction with DELETE, deletes only GDG index, even if its retention period has not expired

 

 






© copyright mainframebug.com
Privacy Policy