DELETE ALL GDG VERSIONS WITHOUT DELETING BASE
Below JCL would delete all the versions of the GDG without deleting the BASE.
// JOB CARD
//PGM EXEC PGM=IEFBR14
//YOURGDG DD DSN=YOUR.GDG.BASE,
// DISP=(OLD,DELETE,DELETE)
——————————————————————————————————–
In United States, If you would like to Earn Free Stocks, Credit card Points and Bank account Bonuses, Please visit My Finance Blog
——————————————————————————————————–
You may also like to look at:
Problem is when you do not have any GDG versions, this would throw a JCL error .. any other alternatives?
Hi Vinayak,
The below JCL step (IDCAMS) would delete both GDG BASE and all of its Versions.
//PGM EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DELETE (YOUR.INPUT.GDG) GDG FORCE
very very useful boss. Thanks
suppose we have 10 job steps. I want to execute from the 5th step only without using condition parameter.How to do that? the first 4 steps should not get executed.
Hello Roy, Please take a look at below link
https://mainframesf1.wordpress.com/2013/09/17/jcl-run-only-one-middle-step-restart/
If you dont want to use COND parameter, we can use IF condition by checking RC and execute only 5th step.
In case, you need more details, please mail me @ raje.ar@gmail.com.. Thanks