How to delete generations of gdg without deleting gdg base?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

4408


what are the statements that are not valid to be included in an include statement?

739


Explain the function of dd disp parameter?

571


What are the parameters that are used in creating a gdg?

709


How to submit a jcl from cics?

636






How is a type of file defined in the jcl that executes the cobol program?

687


what are the various stages of job processing?

710


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

5038


What is the function of //jcllib statement?

762


When space is allocated for an output dataset, what units can be used?

719


How does jcl act on a cobol code?

632


Define concatenating?

637


Matching Logic in Jcl not in cobol.Could any one please answer this question

3647


How can the attributes of one sms dataset be copied to another dataset?

819


Explain about LMQUERY�give a dialog information about a data set

878