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 

delete the gdg base & generations if exists by idcams

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
Anand_R
Intermediate


Joined: 24 Dec 2002
Posts: 189
Topics: 60

PostPosted: Wed Jan 14, 2004 4:58 pm    Post subject: delete the gdg base & generations if exists by idcams Reply with quote

Hi,

I tried to delete the GDG base & generations if exists by IDCAMS by the following jcl..But I am getting return code 12 . Could some one tell me should I add any other parameters.
If it is not possible by idcams, Can it be done by FILE AID..?
//*******************************************************
//PSTEP04 EXEC PGM=IDCAMS
//*******************************************************
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DELETE -
G1KKIXT.ONESHOT.AUDIT.TRAILS GDG PURGE
/*
//SYSDUMP DD SYSOUT=*
//*

Following is the error code..

** VSAM CATALOG RETURN CODE IS 48 - REASON CODE IS IGG0CLFO-28
** ENTRY G1NX62T.ONESHOT.AUDIT.TRAILS NOT DELETED

Thanks
Anand
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Wed Jan 14, 2004 6:19 pm    Post subject: Reply with quote

Anand_r,

Change your sysin cards to the following and see if it works.

Code:

//SYSIN DD *
  DELETE 'G1NX62T.ONESHOT.AUDIT.TRAILS' FORCE
//*


Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Anand_R
Intermediate


Joined: 24 Dec 2002
Posts: 189
Topics: 60

PostPosted: Wed Jan 14, 2004 6:29 pm    Post subject: Reply with quote

Kolusu,

thanks for ur response.. I tried that option, but I am getting following message

IDCAMS SYSTEM SERVICES TIME: 18:

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

IDC0002I IDCAMS PROCESSING COMPLETE. MAXIMUM CONDITION CODE WAS 8

Can you please tell me what is this abt.

Thanks
Anand
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Thu Jan 15, 2004 11:46 am    Post subject: Reply with quote

Anand,

Try this

Code:

//SYSIN    DD  *
  DELETE 'G1NX62T.ONESHOT.AUDIT.TRAILS.*'
  DELETE 'G1NX62T.ONESHOT.AUDIT.TRAILS'
//*


Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
vijay
Beginner


Joined: 09 May 2003
Posts: 131
Topics: 64

PostPosted: Thu Jan 15, 2004 3:39 pm    Post subject: Reply with quote

Hi ,
Looks like you don't have authorisation to delete that dataset.Otherwise FORCE works fine to delete GDG and all it's versions.


Vijay
Back to top
View user's profile Send private message
Anand_R
Intermediate


Joined: 24 Dec 2002
Posts: 189
Topics: 60

PostPosted: Fri Jan 16, 2004 10:28 am    Post subject: Reply with quote

Kolsu,

wow..it worked like wonder... But can you tell me why I got that error(invalid authorization). Because that is my id and I have created that gdg base.. I should be having access to that base ..Can you calrify that.

Thanks a lot

Anand
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Fri Jan 16, 2004 10:39 am    Post subject: Reply with quote

Anand_r,

I guess your shop is SMS managed and in that case it does not allow you to delete the base along with gens with FORCE option. That is the reason as to why you are getting an INVALID AUTHORIZATION TO EXECUTE FUNCTION

On the other hand you delete all the gens ,then SMS knows that the base has no links and lets you delete the GDGBASE as if it were a normal Sequential dataset.

Hope this helps...

Kolusu
_________________
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 -> Utilities 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