View previous topic :: View next topic |
Author |
Message |
shekar123 Advanced
Joined: 22 Jul 2005 Posts: 528 Topics: 90 Location: Bangalore India
|
Posted: Tue Sep 20, 2005 5:26 am Post subject: Deleting a gdg base and all its generations in one shot |
|
|
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 |
|
|
Phantom Data Mgmt Moderator
Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
|
Back to top |
|
|
ANIL SARATHY Beginner
Joined: 30 Aug 2005 Posts: 88 Topics: 3 Location: Syracuse,New york
|
Posted: Tue Sep 20, 2005 5:52 am Post subject: |
|
|
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)"
_________________ Anil Sarathy |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
|
|