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

How to delete an uncataloged dataset


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

Active User


Joined: 05 Feb 2007
Posts: 199
Location: Sri Lanka

PostPosted: Sat Mar 17, 2007 6:05 am
Reply with quote

Hi,

I have a dataset that I have uncataloged, so it doesn't show in ISPF 3.4 if volser is not specified.

How do I delete it?

thanks!
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Sat Mar 17, 2007 7:17 am
Reply with quote

Hello,

You can use IEFBR14, specify DISP=(MOD,DELETE), and the VOLSER. The entry should be removed from the VTOC. The catgalog will not be affected.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Sat Mar 17, 2007 11:26 pm
Reply with quote

Use IDCAMS DELETE NVR is the recommended method
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Sun Mar 18, 2007 12:18 am
Reply with quote

expat wrote:
IDCAMS DELETE NVR
icon_confused.gif What is NVR?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Sun Mar 18, 2007 12:41 am
Reply with quote

Hello,

NVR = non-Vsam volume record.

For some sites
Quote:
Use IDCAMS DELETE NVR is the recommended method

not necessarily all.

If your site has a standard/recommended method, by all means, use it. If not, one way is as good as the other.

Do keep in mind that any process that causes a dataset to be in the vtoc but not the catalog should be corrected.
Back to top
View user's profile Send private message
wanderer

Active User


Joined: 05 Feb 2007
Posts: 199
Location: Sri Lanka

PostPosted: Sun Mar 18, 2007 8:43 am
Reply with quote

Thanks Dick and Expat for the response and I will try out those things on Monday.

Dick, I actually tried to re-catalog the dataset so I could delete it by running an IEFBR14 with a DISP=(MOD,CATLG,CATLG) and VOL=SER=xxxxxx

It did catalog a dataset with same name, but it was new dataset on a different volume. Not my old dataset.

Quote:
Do keep in mind that any process that causes a dataset to be in the vtoc but not the catalog should be corrected.


Sometimes I have seen Tape datasets are just deleted from catalog without scratching them from the tape volume. The logic was to allow RMM(removable media manager!) to take care of them. I don't know much of RMM but such a concept seemed strange.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Sun Mar 18, 2007 9:37 am
Reply with quote

Hello,

What (error?) message(s) were presented when MOD,CATLG failed.

I thought you were trying to delete it?

If the dataset is still on the volume and you want to re-catalog it, try cataloging it using IDCAMS.

If you want to delete it, try the BR14 or IDCAMS delete.

Let us know how it goes icon_smile.gif
Back to top
View user's profile Send private message
wanderer

Active User


Joined: 05 Feb 2007
Posts: 199
Location: Sri Lanka

PostPosted: Sun Mar 18, 2007 2:46 pm
Reply with quote

Dick,

Mod, Catlg didn't fail. It succeded, but not in the way I wanted to. It created a cataloged dataset with the same name on another volume.

But the dataset on my volume remained uncataloged.

I will let you know the rest when I try them out.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Sun Mar 18, 2007 6:13 pm
Reply with quote

wanderer wrote:
I have a dataset that I have uncataloged, so it doesn't show in ISPF 3.4 if volser is not specified.
How do I delete it?
On the 3.4, include the volser and delete it.

wanderer wrote:
Mod, Catlg didn't fail. It succeded, but not in the way I wanted to. It created a cataloged dataset with the same name on another volume.
But the dataset on my volume remained uncataloged.
Did you include the volser on the DD?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Sun Mar 18, 2007 10:27 pm
Reply with quote

Hi Wanderer,

My bad - sorry 'bout that. Lately, my IEBEYEBALL is moving more quickly than it should and occasionally i mis-read.

Bummer. . . .

Yup, if the catlg "worked" the original dataset would remain. If i understand what is happening, some of your dasd is sms-managed and some not.

If you do an OLD,DELETE with the VOLSER, it shound work. I'd only specify the DSN, DISP, VOLSER, and maybe the UNIT (depending on how allocations are processed at your site. Leave out the DATACLAS parameter or anything else that works with SMS. If your site has "rules" based on jobname, use a jobcard that will not trigger sms.
Back to top
View user's profile Send private message
wanderer

Active User


Joined: 05 Feb 2007
Posts: 199
Location: Sri Lanka

PostPosted: Sun Mar 18, 2007 10:59 pm
Reply with quote

William,

I tried using ispf 3.4 and listing the dataset using volser. It shows. But when I try deleting, it says, 'dataset not in catalog'.

And yes, I did include volser.

Dick,

I think you are right about some of our dasd being SMS managed. Using OLD, Delete is an option I have also thought of lately. I will try that out.

And, you can use (MOD,SLOW,SLOW) in IEBEYEBALL to condition it. icon_wink.gif

Thanks!
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Sun Mar 18, 2007 11:44 pm
Reply with quote

You're welcome icon_smile.gif

I've tried this:
Quote:
use (MOD,SLOW,SLOW) in IEBEYEBALL

a-n-d i-t s-e-e-m-s t-o o-n-l-y e-f-f-e-c-t m-y k-e-y-i-n-g . . . icon_redface.gif
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Mon Mar 19, 2007 3:28 pm
Reply with quote

If the dataset is on an SMS managed volume use IDCAMS DELETE NVR, and if it's on a NON SMS managed volume use IEHPROGM.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Mon Mar 19, 2007 3:29 pm
Reply with quote

Or ............... you could always use IDCAMS DEFINE RECATALOG to redefine the catalog entry and then delete it using 3.4
Back to top
View user's profile Send private message
wanderer

Active User


Joined: 05 Feb 2007
Posts: 199
Location: Sri Lanka

PostPosted: Tue Mar 20, 2007 4:44 am
Reply with quote

Ok,

Looks like over the weekend, somebody has deleted my uncataloged datasets. Probably they have an automated job that does this.

So I uncataloged another dataset and tried the OLD,DELETE,DELETE with IEFBR14 using the dataset and gave the vol=ser=xxxxxx. It gave a JCL error that dataset not in catalog.

Then I tried IEHPROGM as follows,

Code:
//STEP1   EXEC PGM=IEHPROGM                     
//SYSPRINT DD SYSOUT=*                           
//SYSIN   DD   *                                 
   CATLG DSNAME=xxxxxxxx.xxxxxxxx,VOL=3390=xxxxxx


It said,

Code:
IEH210I  YOUR REQUEST CANNOT BE SERVICED....   
TED0801.TEMP IS A CATALOGED DATA SET OR IF APPLICABLE,  THE GDG INDEX DOES NOT EXIST  ... UNUSUAL END


Now, my file is just a PDS file. No GDG.

I haven't tried the IDCAMS NVR option yet. Will get back once I get to try that.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Tue Mar 20, 2007 5:47 am
Reply with quote

Hello,

Yup, the IEH210I looks like sms stepped in (again icon_smile.gif ).

Let us know how the IDCAMS DELETE goes.

Other than the one you've forced for additional testing, how did the others get out of sync?
Back to top
View user's profile Send private message
wanderer

Active User


Joined: 05 Feb 2007
Posts: 199
Location: Sri Lanka

PostPosted: Tue Mar 20, 2007 7:05 am
Reply with quote

Moderators, please can you edit my last post in previous page and mask the dataset name given in the 'code' section? I can't edit my post. icon_sad.gif

Or can someone tell me if there is any other way to edit post?

Dick,

No other dataset has got out of sync. I am just doing some testing for my own learning. So it is only my dataset which is out of sync.

thanks!
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Tue Mar 20, 2007 7:15 am
Reply with quote

You're welcome - good luck icon_smile.gif
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Tue Mar 20, 2007 2:24 pm
Reply with quote

1) Did you have a DD statement relating to the volume on which you wished to use to recatalog your dataset. If not, try it with one.

2) If the dsn is SMS managed, use IDCAMS DEFINE RECATALOG instead of IEHPROGM
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 batch SFTP job using AOPBATCH unable ... All Other Mainframe Topics 7
No new posts Reading Empty Dataset DFSORT/ICETOOL 5
No new posts Mainframe Dataset Binary or ASCII Mainframe Interview Questions 4
No new posts SPOOL to Mainframe dataset in batch mode JCL & VSAM 7
No new posts DELETE SPUFI DB2 1
Search our Forums:

Back to Top