IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Can we delete a GDG using DELETE without using PURGE/FORCE


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
achusarath

New User


Joined: 21 Mar 2007
Posts: 26
Location: kerala

PostPosted: Mon Mar 26, 2007 12:20 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Mar 26, 2007 1:55 pm
Reply with quote

Is the base empty ???
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Mar 26, 2007 9:33 pm
Reply with quote

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
View user's profile Send private message
pavanbolla

New User


Joined: 25 Mar 2007
Posts: 7
Location: Canada

PostPosted: Tue Mar 27, 2007 10:22 am
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Mar 27, 2007 12:14 pm
Reply with quote

expat wrote:
Is the base empty ???
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Mar 27, 2007 7:36 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Mar 27, 2007 7:51 pm
Reply with quote

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
View user's profile Send private message
albertmathew1

New User


Joined: 09 Mar 2007
Posts: 1
Location: cochin

PostPosted: Fri Mar 30, 2007 5:33 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Mar 30, 2007 5:36 pm
Reply with quote

And what do all of those lovely little error messages tell you ?
Back to top
View user's profile Send private message
arvinthsiva

New User


Joined: 30 Sep 2005
Posts: 1
Location: California, USA

PostPosted: Sat Apr 07, 2007 1:28 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts DELETE SPUFI DB2 1
No new posts DSNTIAUL driven delete IBM Tools 0
No new posts How to delete a user's alias from the... JCL & VSAM 11
No new posts force tablespace using LISTDEF input DB2 1
No new posts Delete file row if blanks in the firs... DFSORT/ICETOOL 5
Search our Forums:

Back to Top