Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

About GDG generation files

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
zawx

New User


Joined: 28 Feb 2008
Posts: 21
Location: china

PostPosted: Mon Mar 17, 2008 12:32 pm    Post subject: About GDG generation files
Reply with quote

I defined a gdg base and a generation file 'G0001V00'.
When I deleted gdg base using parameter 'RECOVERY',
DELETE XX.GDG1.BASE GDG RECOVERY
the generation files become not cataloged.

I redifined the gdg base and a generation file.
The newest generation file's name is 'G0001V00' and cataloged.
The file and the foregoing file is same name,but the former file is not cataloged and the latter is cataloged.

I can't delete the generation file using command 'DELETE' or JCL.
How I can delete the generation file?
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Mar 17, 2008 4:53 pm    Post subject:
Reply with quote

Hello,

Quote:
How I can delete the generation file?
Name the dsn in a DD statement and specify DISP=(OLD,DELETE).
Back to top
View user's profile Send private message
zawx

New User


Joined: 28 Feb 2008
Posts: 21
Location: china

PostPosted: Tue Mar 18, 2008 6:50 am    Post subject:
Reply with quote

Your method can delete the new 'G0001V00' generation file which is cataloged,but can not delete the old 'G0001V00' one which is not cataloged.
I find a JCL deleting the uncataloged generation file.As follow:

//STEP1 EXEC PGM=IDCAMS
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//DD1 DD VOL=SER=XXXXXX,UNIT=SYSDA,DISP=OLD
//SYSIN DD *
DELETE YOURTSOID.DATA.GDG1.G0001V00 -
FILE(DD1) -
NVR
/*

The file name must be a real name,but not a general name.(eg. YOURTSOID.DATA.GDG1.*)
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Mar 18, 2008 7:00 am    Post subject:
Reply with quote

Hello,

Quote:
Your method can delete the new 'G0001V00' generation file which is cataloged,but can not delete the old 'G0001V00' one which is not cataloged
Yes, it can. All you have to do is specify the volser on the dd statement i mentioned.
Back to top
View user's profile Send private message
zawx

New User


Joined: 28 Feb 2008
Posts: 21
Location: china

PostPosted: Tue Mar 18, 2008 7:30 am    Post subject:
Reply with quote

And you know how to delete gdg base and generation files by one statment?
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Mar 18, 2008 7:52 am    Post subject:
Reply with quote

Hello,

Quote:
And you know how to delete gdg base and generation files by one statment?
I'm not aware of a way to do this with one statement.
Back to top
View user's profile Send private message
zawx

New User


Joined: 28 Feb 2008
Posts: 21
Location: china

PostPosted: Tue Mar 18, 2008 9:01 am    Post subject:
Reply with quote

I can do it with two statement.

DELETE TSOID.DATA.GDG1.*
DELETE TSOID.DATA.GDG1 GDG PURGE

Thanks a lot!
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Tue Mar 18, 2008 12:51 pm    Post subject:
Reply with quote

And I can do it in ONE using the FORCE parameter
Back to top
View user's profile Send private message
zawx

New User


Joined: 28 Feb 2008
Posts: 21
Location: china

PostPosted: Thu Mar 20, 2008 5:57 am    Post subject:
Reply with quote

Yes,I done success.
Thanks a lot.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts getting three output files out of JOI... migusd SYNCSORT 7 Mon Jun 05, 2017 11:30 pm
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
No new posts SMTP the current generation number of... Jyothi Kulunde JCL & VSAM 4 Thu May 04, 2017 4:08 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
No new posts Dynamic split of files under groups sril.krishy DFSORT/ICETOOL 4 Mon Apr 17, 2017 1:09 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us