Can we DELETE all the Generations of a GDG at once, WITHOUT
deleting the GDG itself ?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
Answer / dedicated_programmer
Thanks for completing the answer, Kalone.
| Is This Answer Correct ? | 4 Yes | 3 No |
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 |
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 |
i have 10 steps in my jcl. -->if i want to execute my program from 5th step what i have to do? don't give //* in ur previous steps --> if i want to execute my program from 1to 5 steps only what i have to do?
what is use of dcb parameter in dd statement?
List the various advantages of using jcl language?
How many types of libraries are there in JCL ?
I have multiple jobs ( JCLs with several JOB cards ) in a member. What happens if I submit it?
which statement is used to end the in-stream procedure in a jcl?
When concatenating two PDS can any one PDS can have empty dataset i.e without any value(Dummy).
mainframe questions like basic&depth
what is the alternative to model parameter?
For what purpose steplib and joblib are used ?
why do we use file-aid wht r the adv of using file-aid thn in ispf
If job is submitted with typerun = hold then how can we submit the same job?