Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8681
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 Comparing two sequential files Mohan Kothakota COBOL Programming 14 Mon Apr 16, 2018 6:35 pm
No new posts SORT 3 files,extract specific fields ... Kiransr DFSORT/ICETOOL 13 Fri Mar 23, 2018 10:54 am
No new posts How to build one file from two input ... daniele DFSORT/ICETOOL 5 Tue Feb 27, 2018 6:45 pm
No new posts PARSE GDG name to separate generation... Abid Hasan SYNCSORT 2 Sun Feb 11, 2018 3:40 pm
No new posts Compare two PS files using ICE TOOL f... SENTHIL MURUGAAN DFSORT/ICETOOL 5 Sun Dec 24, 2017 1:26 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us