Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

How do you access a file that had a disposition of KEEP?

3 Answers  


Explain the purpose of the dd keylen parameter?

0 Answers  


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

2 Answers   IBM, TCS, UST, Xansa,


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,


Is there a way to check for an empty file in JCL other than using IEBCOMPR and the command PRINT COUNT(1)?

8 Answers  


Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?

0 Answers  


I have two input files i/p1 name id-key flag date i/p 2 name id-key date if id-key matches in the both the files then it should write the output file from i/p1 with flag 'Y'. It should be done thru JCL sort card ,Please provide the info on this. ---Note : output file should have all records from i/p1 with proper Flag.

2 Answers  


what is JCLLIB and PROCLIB in jcl and their syntax

3 Answers   IBM,


Why block size is multiple of lrecl in jcl?

0 Answers  


Is it possible to take a PDS and write it to a GDG? If so, can you provide an example? Thanx

7 Answers  


i just need the first and last record from a sequencial file?how

2 Answers  


in a series of 10 steps, i need to run only 1,3,5,7 & 9th steps only. how do u code?

5 Answers   ADP,


Categories