View previous topic :: View next topic |
Author |
Message |
Anand_R Intermediate

Joined: 24 Dec 2002 Posts: 189 Topics: 60
|
Posted: Wed Jan 14, 2004 4:58 pm Post subject: delete the gdg base & generations if exists by idcams |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Wed Jan 14, 2004 6:19 pm Post subject: |
|
|
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 |
|
 |
Anand_R Intermediate

Joined: 24 Dec 2002 Posts: 189 Topics: 60
|
Posted: Wed Jan 14, 2004 6:29 pm Post subject: |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Thu Jan 15, 2004 11:46 am Post subject: |
|
|
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 |
|
 |
vijay Beginner
Joined: 09 May 2003 Posts: 131 Topics: 64
|
Posted: Thu Jan 15, 2004 3:39 pm Post subject: |
|
|
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 |
|
 |
Anand_R Intermediate

Joined: 24 Dec 2002 Posts: 189 Topics: 60
|
Posted: Fri Jan 16, 2004 10:28 am Post subject: |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Fri Jan 16, 2004 10:39 am Post subject: |
|
|
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 |
|
 |
|
|