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

I want to JCL sort for Non-COMP and COMP-3 fields SORT FIELDS=(1,5,A,6,11,A,12,11,A,19,1,A,20,1,A),FORMAT=BI,EQUALS Length of comp bytes is 11 bytes which start at 6byte and 12 byte considering 11 bytes in comp-3 is 6 bytes. Can anyone tell if the above sort work SORT FIELDS=(1,5,A,6,6,A,12,6,A,19,1,A,20,1,A),FORMAT=BI,EQUALS does not works OK

0 Answers   IBM,


A statement about PROCs is " In PROCs, Symbolic Parameters can be assigned on PROC and EXEC", BUT On which EXEC, (i) On the JCL's EXEC which is calling to PROC1. (Inside JCL, EXEC PROC1) (ii) or On the PROC's EXEC where it calls the PGM1. (Inside PROC, EXEC PGM=PGM1)

1 Answers   IBM,


How can we increment subscript and index?

1 Answers   CTS, IBM,


How do you create a temporary dataset? Where will you use them?

2 Answers   IBM,


Explain the purpose of dd dummy statement?

0 Answers  


what is the job entry system used in your project?

3 Answers  


how JCL works?

0 Answers  


what are the symbolic parameters? why do we use symbolic parameters ?

2 Answers   IBM, TCS, UST, Xansa,


how to convert fb to vb in jcl ?

5 Answers   IBM, Infosys,


How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.

0 Answers   CSC, SPIC,


I have 5 steps in my job. say s1, s2, s3, s4, s5 //s1 exec ............. //s2 exec ............ //s3 exec .......... //s4 exec ........ //s5 exec ............... my question is i want to exeute only s2 and s4 steps... please advice me how to do this:

4 Answers   ITC Infotech, TCS,


i want to see the jobs in skeleton queue in diff region. (eg. 7 regions are running means , i want to see all the jobs in 7 regions which are in skel queue using 1 command)

1 Answers  


Categories