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: 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 Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts Join records from 2 files with No Dup... Poha Eater DFSORT/ICETOOL 21 Sun Aug 27, 2017 10:35 pm
No new posts Match two files using multiple keys a... santoshks1987 SYNCSORT 11 Fri Aug 18, 2017 10:50 am
No new posts Multiple VSAM files single output fil... Mohan Kothakota DFSORT/ICETOOL 11 Wed Aug 09, 2017 7:57 pm
No new posts getting three output files out of JOI... migusd SYNCSORT 7 Mon Jun 05, 2017 11:30 pm

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