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

In a single step if input file is present then only need to copy into output file or else need to through a RC is it possible. Note : i want it in a single step

1 Answers  


Name a few IBM utility programs, and explain its function.

0 Answers  


What is timing concept in mainframe?

0 Answers  


what is the control cards?

3 Answers  


How are GDGs concatenated?

1 Answers  






A dd statement consists of 4 fields. Name them?

0 Answers  


what is alternate index?

1 Answers  


In SPACE,what is directory,RLSE

6 Answers   TCS,


Hi, If a catolog proc has another proc in it, both have ddnames dd1 and dd2. what proc will override if gave override parameter. Here both have same step names.

2 Answers   UHG,


what is DSN in JCL and what are the parameters to declare the DSN?

0 Answers  


Can we Execute a job without specifying Job Name in the Job Card?

2 Answers  


What is the exact difference between PRTY and DPRTY

2 Answers   iGate,


Categories