Can we DELETE all the Generations of a GDG at once, WITHOUT
deleting the GDG itself ?

Answers were Sorted based on User's Feedback



Can we DELETE all the Generations of a GDG at once, WITHOUT deleting the GDG itself ? ..

Answer / kalone

Yes , we can do that by using following step :

//step1 dd pgm=iefbr14
//gdggen dd dsn=base-gdg-file,DISP=(MOD,DELETE,DELETE)

The above code will delete all the generations except the
base GDG.TO delete base GDG you need to use IDCAMS.

Is This Answer Correct ?    20 Yes 3 No

Can we DELETE all the Generations of a GDG at once, WITHOUT deleting the GDG itself ? ..

Answer / kranthi kumar m

yes,we can,by pressing d infront of command prompt before
all generations but we can't delete gdg base directly, if we
want delete base use syntax like dis,
//sysin dd *
delete (base-name) purge
/*
//

Is This Answer Correct ?    9 Yes 5 No

Can we DELETE all the Generations of a GDG at once, WITHOUT deleting the GDG itself ? ..

Answer / deepak narasappa

During such scenario..always create dummy GDG version at
the end of job.. SO whenever your job runs, atleast one
dummy file will be present and also you can avoid abend..

Is This Answer Correct ?    3 Yes 1 No

Can we DELETE all the Generations of a GDG at once, WITHOUT deleting the GDG itself ? ..

Answer / dedicated_programmer

Thanks Kranthi,
And Using Purge or Force will delete the GDG Base as well as
all the generations of the GDG. While Using Delete without
any option DELETS only the INDEX of the GDG.
Could you please help in sorting out whether there is a way
to DELETE ONLY ALL THE GENERATIONS OF THE GDG WITHOUT
DELETING THE BASE, "USING JCL".

Is This Answer Correct ?    2 Yes 1 No

Can we DELETE all the Generations of a GDG at once, WITHOUT deleting the GDG itself ? ..

Answer / dedicated_programmer

Thanks for completing the answer, Kalone.

Is This Answer Correct ?    4 Yes 3 No

Can we DELETE all the Generations of a GDG at once, WITHOUT deleting the GDG itself ? ..

Answer / bobie kamahuha bobzy

Do the following;

//p gxxxxxx
gxxxxxx
gxxxxxx
gxxxxxx
gxxxxxx
gxxxxxx
// gxxxxxx



Make sure the *//* are properly arrigned

Is This Answer Correct ?    1 Yes 1 No

Can we DELETE all the Generations of a GDG at once, WITHOUT deleting the GDG itself ? ..

Answer / sam

I am facing problems while deleting all GDG versions except
base using IEFBR14. My job fails when I try to execute
IEFBR14 with my GDG base having no versions, causing
problems in my job flow.

I want to delete all gdg versions if they exist otherwsie
my job should execute fine.

Can anyone suggest solution for this?

Is This Answer Correct ?    2 Yes 3 No

Post New Answer

More JCL Interview Questions

Is automatic restart possible in jcl? If yes, how?

0 Answers  


Explain about LMCLOSE�close a data set

1 Answers  


How to view the hexa decimal value thru file aid if copy book is not present for that particular data

1 Answers  


When output dataset space is required, what quantity categories are used?

0 Answers  


//S10 EXEC PGM=ICETOOL //TOOLMSG DD SYSOUT=* //DFSMSG DD SYSOUT=* //CON DD DSN=VAR.INPUT1,DISP=SHR // DD DSN=VAR.INPUT2,DISP=SHR //OUT DD DSN=VAR.OUTPUT,DISP=(NEW,CATLG,DELETE), // SPACE=(CYL,(5,5)),UNIT=SYSDA //TOOLIN DD * * Splice the needed data from the two VB files together SPLICE FROM(CON) TO(OUT) ON(5,5,CH) WITHALL - WITH(12,5) WITH(22,20) VLENMAX /*

0 Answers  






Please give me the coding for converting VB to FB and FB to VB

3 Answers   HP,


in a jcl, a large volume dataset is loaded to a table using bmcload in step1 and an image copy of the loaded table is taken using bmccopy in step2. Step2 abends because the image copy dataset cannot hold the volume of the table. How can this be rectified?

0 Answers   IBM,


How to alter the parameters for the existing gdg?

0 Answers  


In your JCL, run the even numbered steps if date is even and run odd numbered steps if date is odd . Where do you generate the date ??in cobol or JCL ??

2 Answers   CSC,


List in order the hierarchical levels of jcl?

0 Answers  


I have a cobol db2 program(PGM A) where other program (PGM B) will call this program and passes some 50 fields data to PGM A. PGM A has some layout in which it receives the data from PGM B. And this layout has been copied in the linkage section pf PGM A. After getting the data, PGM A writes the data in a flat file in the same layout which it receives from PGM B. PGM B is a simple COBOL pgm. Please provide a JCL to run these programs.

0 Answers  


how to edit a tape dataset ? asked in wipro

1 Answers   Wipro,


Categories