MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Deleting a gdg base and all its generations in one shot

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
shekar123
Advanced


Joined: 22 Jul 2005
Posts: 528
Topics: 90
Location: Bangalore India

PostPosted: Tue Sep 20, 2005 5:26 am    Post subject: Deleting a gdg base and all its generations in one shot Reply with quote

Hai,

I want to delete the entire GDG base and all it's generations in one shot and i am using this statement in my JCL but i am getting RC code 8


//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DELETE UNIT.SAMPLE.G
DELETE UNIT.TEST.G
/*
//


DELETE UNIT.SAMPLE.G
IDC3014I CATALOG ERROR
IDC3009I ** VSAM CATALOG RETURN CODE IS 48 - REASON CODE IS IGG0CLFO-28
IDC0551I ** ENTRY UNIT.SAMPLE.G NOT DELETED
IDC0001I FUNCTION COMPLETED, HIGHEST CONDITION CODE WAS 8

DELETE UNIT.TEST.G
IDC3014I CATALOG ERROR
IDC3009I ** VSAM CATALOG RETURN CODE IS 48 - REASON CODE IS IGG0CLFO-28
IDC0551I ** ENTRY UNIT.TEST.G NOT DELETED
IDC0001I FUNCTION COMPLETED, HIGHEST CONDITION CODE WAS 8

IDC0002I IDCAMS PROCESSING COMPLETE. MAXIMUM CONDITION CODE WAS 8



Again i tried using this code but still i am getting RC code 8
--------------------------------------------------------------
//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DELETE UNIT.SAMPLE.G PURGE
DELETE UNIT.TEST.G PURGE
/*
//

DELETE UNIT.SAMPLE.G
IDC3014I CATALOG ERROR
IDC3009I ** VSAM CATALOG RETURN CODE IS 48 - REASON CODE IS IGG0CLFO-28
IDC0551I ** ENTRY UNIT.SAMPLE.G NOT DELETED
IDC0001I FUNCTION COMPLETED, HIGHEST CONDITION CODE WAS 8

DELETE UNIT.TEST.G
IDC3014I CATALOG ERROR
IDC3009I ** VSAM CATALOG RETURN CODE IS 48 - REASON CODE IS IGG0CLFO-28
IDC0551I ** ENTRY UNIT.TEST.G NOT DELETED
IDC0001I FUNCTION COMPLETED, HIGHEST CONDITION CODE WAS 8

IDC0002I IDCAMS PROCESSING COMPLETE. MAXIMUM CONDITION CODE WAS 8


I have also tried using this but still i am getting RC code 8
---------------------------------------------------------------
//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DELETE UNIT.SAMPLE.G FORCE
DELETE UNIT.TEST.G FORCE
/*
//




DELETE UNIT.SAMPLE.G FORCE
IDC2054I INVALID AUTHORIZATION TO EXECUTE FUNCTION
IDC3009I ** VSAM CATALOG RETURN CODE IS 190 - REASON CODE IS IGG0CLFT-12
IDC0551I ** ENTRY UNIT.SAMPLE.G NOT DELETED
IDC0001I FUNCTION COMPLETED, HIGHEST CONDITION CODE WAS 8

DELETE UNIT.TEST.G FORCE
IDC2054I INVALID AUTHORIZATION TO EXECUTE FUNCTION
IDC3009I ** VSAM CATALOG RETURN CODE IS 190 - REASON CODE IS IGG0CLFT-12
IDC0551I ** ENTRY UNIT.TEST.G NOT DELETED
IDC0001I FUNCTION COMPLETED, HIGHEST CONDITION CODE WAS 8

IDC0002I IDCAMS PROCESSING COMPLETE. MAXIMUM CONDITION CODE WAS 8



Can anybody help me out with the exact syntax / where i am wrong ? I want to delete the entire GDG base as well as generations?
Back to top
View user's profile Send private message
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Tue Sep 20, 2005 5:50 am    Post subject: Reply with quote

Shekar123,

This should help you.
http://publibz.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/DGT2I230/20.2.11?DT=20040628101835

You just need to specify what is type of dataset that you are trying to delete. GENERATIONDATAGROUP (GDG).

Hope this helps,

Thanks,
Phantom
Back to top
View user's profile Send private message
ANIL SARATHY
Beginner


Joined: 30 Aug 2005
Posts: 88
Topics: 3
Location: Syracuse,New york

PostPosted: Tue Sep 20, 2005 5:52 am    Post subject: Reply with quote

try this

DELETE UNIT.SAMPLE.G GDG PURGE

DELETE UNIT.TEST.G GDG PURGE



"delete" "file name" "type of file(gdg/vsam)" " delete regardless of retention (purge)"

Smile
_________________
Anil Sarathy
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Tue Sep 20, 2005 6:24 am    Post subject: Reply with quote

Shekhar123,

Please search before posting . This topic has been discussed earlier.

http://www.mvsforums.com/helpboards/viewtopic.php?t=1659&highlight=purge+gdg

Hope this helps...

Cheers

Kolusu

Ps: Please do not post your topic title in uppercase.
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group