Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Can we delete a GDG using DELETE without using PURGE/FORCE
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: 8593
Location: Back in jolly old England

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

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

Site Director


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

PostPosted: Mon Mar 26, 2007 9:33 pm    Post subject:
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: 4
Location: Banglore

PostPosted: Tue Mar 27, 2007 10:22 am    Post subject: Re: Can we delete a GDG using DELETE without using PURGE/FOR
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: 8593
Location: Back in jolly old England

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

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

Site Director


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

PostPosted: Tue Mar 27, 2007 7:36 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Tue Mar 27, 2007 7:51 pm    Post subject:
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    Post subject: Re: Can we delete a GDG using DELETE without using PURGE/FOR
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: 8593
Location: Back in jolly old England

PostPosted: Fri Mar 30, 2007 5:36 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am
No new posts JCL to delete component in a package sundaram.naveen Compuware & Other Tools 14 Tue Nov 29, 2016 6:21 pm
No new posts How to delete second instance from Fl... Gunapala CN DFSORT/ICETOOL 6 Tue Oct 18, 2016 11:42 pm
No new posts Delete record or Reset RC code using ... mpawan Compuware & Other Tools 4 Tue Jul 26, 2016 3:52 pm
No new posts Delete VSAM File Records amitc23 CICS 6 Sun Apr 10, 2016 10:10 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us