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 |
Is automatic restart possible in jcl? If yes, how?
Explain about LMCLOSE�close a data set
How to view the hexa decimal value thru file aid if copy book is not present for that particular data
When output dataset space is required, what quantity categories are used?
//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 /*
Please give me the coding for converting VB to FB and FB to VB
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?
How to alter the parameters for the existing gdg?
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 ??
List in order the hierarchical levels of jcl?
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.
how to edit a tape dataset ? asked in wipro