View previous topic :: View next topic
|
Author |
Message |
wanderer
Active User
Joined: 05 Feb 2007 Posts: 199 Location: Sri Lanka
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Use IDCAMS DELETE NVR is the recommended method |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
expat wrote: |
IDCAMS DELETE NVR |
What is NVR? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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 |
|
|
wanderer
Active User
Joined: 05 Feb 2007 Posts: 199 Location: Sri Lanka
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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 |
|
Back to top |
|
|
wanderer
Active User
Joined: 05 Feb 2007 Posts: 199 Location: Sri Lanka
|
|
|
|
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 |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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 |
|
|
wanderer
Active User
Joined: 05 Feb 2007 Posts: 199 Location: Sri Lanka
|
|
|
|
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.
Thanks! |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
You're welcome
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 . . . |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Or ............... you could always use IDCAMS DEFINE RECATALOG to redefine the catalog entry and then delete it using 3.4 |
|
Back to top |
|
|
wanderer
Active User
Joined: 05 Feb 2007 Posts: 199 Location: Sri Lanka
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Yup, the IEH210I looks like sms stepped in (again ).
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 |
|
|
wanderer
Active User
Joined: 05 Feb 2007 Posts: 199 Location: Sri Lanka
|
|
|
|
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.
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
You're welcome - good luck |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
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 |
|
|
|