IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to delete a gdg base file


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
bijumon

New User


Joined: 14 Aug 2006
Posts: 20
Location: Pune,India

PostPosted: Fri Aug 18, 2006 7:14 pm
Reply with quote

How to delete a gdg base file and how to create the first generation
Back to top
View user's profile Send private message
senman

New User


Joined: 17 Aug 2006
Posts: 17
Location: Chennai

PostPosted: Fri Aug 18, 2006 8:14 pm
Reply with quote

you can delete the GDG using fileaid option.

And a first generation GDG can be created in JCL or in TSO using 3.2 option.

Use the name as A7105AB.GDG.NEWGEN(+1)
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Fri Aug 18, 2006 8:29 pm
Reply with quote

You can delete the GDG base using the Access Method Services DELETE command, as described here.

To create the first generation, you can use either absolute or relative generations. See Chapter 29. Processing Generation Data Groups in the z/OS V1R6.0 DFSMS: Using Data Sets manual.
Back to top
View user's profile Send private message
Sahoo

New User


Joined: 08 Jun 2006
Posts: 53

PostPosted: Sat Aug 19, 2006 12:14 pm
Reply with quote

Goto 3.4 and type DELETE against the dataset name instead of typing "D". This will delete the GDG Base.
Back to top
View user's profile Send private message
puneet478

New User


Joined: 03 Jan 2006
Posts: 13
Location: Bangalore india

PostPosted: Mon Aug 21, 2006 8:54 am
Reply with quote

Hi Sahoo,

Writing 'D' against the GDG base will not delete it as GDG base entry is not treated as ordinary entry.

Try 'DE' and it should work. 'DE" is short for "DELETE'. This is for extra safety so you delete accidently and loose all the generations. 'DE' you will write only intentionally.

Cheers,
Puneet
Back to top
View user's profile Send private message
shreevamsi

Active User


Joined: 23 Feb 2006
Posts: 305
Location: Hyderabad,India

PostPosted: Mon Aug 21, 2006 10:19 am
Reply with quote

hi,
U have another option to delete the GDGBASE using IDCAMS utility.

Pass the parameter

'DELETE YOUR.GDG.BASE PURGE' thru SYSIN



~Vamsi
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts DELETE SPUFI DB2 1
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts DSNTIAUL driven delete IBM Tools 0
Search our Forums:

Back to Top