How to delete generations of gdg without deleting gdg base?

Answers were Sorted based on User's Feedback



How to delete generations of gdg without deleting gdg base?..

Answer / naresh

using IEFBR14 you can delete all gdg versions without
deleting GDG Base
see below details
//STEP2 EXEC PGM=IEFBR14
//SYSPRINT DD SYSOUT=A
//GDGDEL DD DSN=NBKRELQ.GDG.BASE,DISP=
(SHR,DELETE,DELETE),
// SPACE=(TRK,0)

with same utility you can delete a specifi GDG version aslo
just you need to change DSN name and DISP to DISP=
(MOD,DELETE,DELETE)

Is This Answer Correct ?    9 Yes 2 No

How to delete generations of gdg without deleting gdg base?..

Answer / piyush mani

this approch will delete all the generations as well as base
to delete a generation without deleting base we hv 2 use


alter command in idcams utilt.

gv ur feedback...

Is This Answer Correct ?    1 Yes 1 No

How to delete generations of gdg without deleting gdg base?..

Answer / neha

//SYSIN DD * 
DELETE (DM36A.PFB0004.EXTRACT.SHAKS) GDG FORCE 
//* 
//SYSOUT DD SYSOUT=A 
//SYSPRINT DD SYSOUT=A 
//SYSUDUMP DD SYSOUT=D 
//* 

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More JCL Interview Questions

When we use conditional statement in JCL using if-then-else-endif, IF statement is true, the step is bypassed or executed?

6 Answers  


What is the difference between catalogue procedure and In-Stream procedure?

2 Answers  


proc1,proc2,up to proc5 is there if i want to call proc1 and proc5how can u write the code

2 Answers  


What is the difference between Sysin,Sysout,Sysdbout and Sysudump?

3 Answers  


I have a job (4 steps) with time parameter coded in job & exec, say time=10 in job & time =3,2,2,4 in each steps. Will the job executes successfully?

4 Answers   Cognizant,






a jcl has 2 steps. How to code the jcl such that if step1 abends, then step2 runs. Else, job terminates with step1?

1 Answers   IBM,


What is use of restart and how to use it?

0 Answers  


Wrete a JCL to compare two files and mached records move to onc file & un mached rows wants to another file?

13 Answers   CGI, DSRC, IBM,


Describe the EXEC statement, its meaning, syntax and keywords?

2 Answers  


delete rules in db2

1 Answers   Keane India Ltd,


What is the difference between joblib and jcllib statements

7 Answers   IBM, Maples,


What is the significance of addrspc parameter in the exec statement?

0 Answers  


Categories