View previous topic :: View next topic
|
Author |
Message |
achusarath
New User
Joined: 21 Mar 2007 Posts: 26 Location: kerala
|
|
|
|
hi,
can we delete a GDG using DELETE without using PURGE/FORCE
i coded and done but its note working
why ?
but i read in a text that we can delete GDG using DELETE without using FORCE/PURGE
Code: |
//JOB1 JOB NOTIFY=&SYSUID
//S1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DELETE (ESCUB11.SARATH.GDG1)
/* |
|
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Is the base empty ??? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
When something doesn't work, it is a good idea to post the error information. The error you received from the utility will tell you what the problem is. |
|
Back to top |
|
|
pavanbolla
New User
Joined: 25 Mar 2007 Posts: 7 Location: Canada
|
|
|
|
Hello,
This is the the syntax.
//TECH017A JOB NOTIFY=&SYSUID
//* TYPRUN=SCAN
//STEP10 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD *
DELETE (TECH017.PFILES.PSGDG) GDG
/* |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
expat wrote: |
Is the base empty ??? |
|
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Do we now have 2 of the same situation? There are 2 sets of syntax posted, but so far no one has posted their error information.
For us to help, we need to see what the system provided when it did not run as desired. . . |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Methinks the base has entries and the OP has asked if we can do this without the FORCE/PURGE keywords.
Well the answer is a big resounding NO you can't delete the GDG base whilst it has entries unless you use the FORCE parameter. Not to mention the PURGE parameter should the entries have explicit expiry dates specified.
Well, if the OP can't be a***d to answer questions that will help us resolve his problem I'm certainly not going to bother asking again, or again, or again. |
|
Back to top |
|
|
albertmathew1
New User
Joined: 09 Mar 2007 Posts: 1 Location: cochin
|
|
|
|
Code: |
IDCAMS SYSTEM SERVICES TIME:
DELETE (ESCUB11.SARATH.GDG1)GDG
IDC3014I CATALOG ERROR
IDC3009I ** VSAM CATALOG RETURN CODE IS 48 - REASON CODE IS IGG0CLFO-28
IDC0551I ** ENTRY ESCUB11.SARATH.GDG1 NOT DELETED
IDC0001I FUNCTION COMPLETED, HIGHEST CONDITION CODE WAS 8
IDC0002I IDCAMS PROCESSING COMPLETE. MAXIMUM CONDITION CODE WAS 8 |
this was the error that i got when i submit my job |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
And what do all of those lovely little error messages tell you ? |
|
Back to top |
|
|
arvinthsiva
New User
Joined: 30 Sep 2005 Posts: 1 Location: California, USA
|
|
|
|
expat wrote: |
Methinks the base has entries and the OP has asked if we can do this without the FORCE/PURGE keywords.
Well the answer is a big resounding NO you can't delete the GDG base whilst it has entries unless you use the FORCE parameter. Not to mention the PURGE parameter should the entries have explicit expiry dates specified.
Well, if the OP can't be a***d to answer questions that will help us resolve his problem I'm certainly not going to bother asking again, or again, or again. |
A lot of shops don't allow use of FORCE parameter. So, the better option is to call IEFBR14 with dataset disposition of OLD,DELETE to delete GDG datasets, assuming they are not required any more and then issuing a IDCAMS DELETE command for the base. |
|
Back to top |
|
|
|