View previous topic :: View next topic
|
Author |
Message |
muffirulz
New User
Joined: 14 Sep 2005 Posts: 74 Location: Atlanta, (USA)
|
|
|
|
Hi,
I would like to delete all the generations for a gdg base after the execution of the program.
Please can anyone let me know how to do it in batch. I would like to retain the base for the next run. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Let's say you usually code your.dsn(+1) to create a new version and you code your.dsn(0) to read the most recent version. To delete all of the cataloged versions, you can use
Code: |
//DD1 DD DSN=your.dsn,DISP=(OLD,DELETE,DELETE) |
Do not specify the version. All cataloged versions will be uncataloged/deleted and the gdg base will still be there for the next use. |
|
Back to top |
|
|
prasadplease
New User
Joined: 02 Sep 2006 Posts: 31 Location: Mumbai
|
|
|
|
Use IEFBR14
//STEP001 EXEC PGM=IEFBR14
//DD1 DD DSN= gdg base name,
// DISP=OLD,DELETE) |
|
Back to top |
|
|
|