Page 1 of 2

Deleting DS says its in use

PostPosted: Wed Oct 03, 2012 6:41 pm
by gowthamgyaa
Hi everyone,
Using ISPF I created and saved a DS previously but when i try to delete it by using option 3.4 and giving 'd' nearer to the DS, it says DATA SET IN USE everytime, even if i log on freshly and delete it , it says the same,
Kindly provide me a solution.


Kind regard's
gyaa

Re: Deleting DS says its in use

PostPosted: Wed Oct 03, 2012 6:47 pm
by NicC
What is the datasetname? Go into option 6 (TSO) and run ISRDDN. On the display look down the list of dataset names and see if your dataset is there. If it is then it is allocated to your ISPF session and you will not be able to delete it until it is deallocated. If it is not there try and edit the dataset - if it says in use then press F1 twice and it will tell you who has a grip on the dataset. IF you are sure that it is the dataset that YOU created then you can probably delete it after Xing out of ISPF to the READY prompt from where you can issue the delete command.

Re: Deleting DS says its in use

PostPosted: Wed Oct 03, 2012 8:29 pm
by gowthamgyaa
Hi nicc,
Thanks for your kind reply.
Actually what you said is the case with me.
The dataset is the one which I created in the name of ISPF PROOF, why am unable to delete it in menu option 3.4?
Kindly guide me to this


Kind regard's
gyaa

Re: Deleting DS says its in use

PostPosted: Wed Oct 03, 2012 8:31 pm
by enrico-sorichetti
leave ISPF and use the TSO delete command

Re: Deleting DS says its in use

PostPosted: Wed Oct 03, 2012 9:12 pm
by NicC
Kindly guide me to this

I did - read ALL of what I wrote.

Re: Deleting DS says its in use

PostPosted: Wed Oct 03, 2012 9:20 pm
by gowthamgyaa
Thank you very much enrico & Nicc, i'l do wat u said.


regard's
gyaa

Re: Deleting DS says its in use

PostPosted: Thu Oct 04, 2012 4:00 am
by steve-myers
I presume your TSO session looks like this -
  Menu  Options  View  Utilities  Compilers  Help
--------------------------------------------------------------------
DSLIST - Data Sets Matching XXXXXX.INUSE             Data set in use
Command ===>                                        Scroll ===> CSR

Command - Enter "/" to select action        Message           Volume
--------------------------------------------------------------------
D        XXXXXX.INUSE.ASM                                     XXXX24
************************ End of Data Set list **********************
The are just two ways you can get this.
  1. Another (not your) TSO session is using the dataset.
  2. A batch job is using the dataset.
The only way you can delete the dataset is to wait for the other TSO session to release the dataset, or for the batch job using the dataset to terminate.

Re: Deleting DS says its in use

PostPosted: Thu Oct 04, 2012 6:15 pm
by gowthamgyaa
@Steve & Nicc,
Today i tried by deleting the DS in TSO, but the following msg has been displayed,

Catalog Error
** Entry ******.ISPF.ISPPROF not deleted
Lastcc =8
**VSAM catalog return code is 102-Reason code is IGGOCLFM-7

Sry I am unable to provide you the screen shots.

Steve- what you told is it might be used by some batch process, I request you to elaborate me kindly, because after I logon I tried to delete the DS but it Shows the above error.
Nicc - I followed the steps what you had told me yesterday, you told about deallocation, i hope while loggin off the session it would ask whether to keep dataset ,delete dataset something like that , its the method for deallocation?


Kind regard's
gyaa

Re: Deleting DS says its in use

PostPosted: Thu Oct 04, 2012 6:36 pm
by enrico-sorichetti
seems that for some <yet unknown> reason the dataset is still allocated somewhere ...

ask a colleague to use TSO ISRDDN to check for enqueues on <that> dataset

I just tested and on my system I was able to delete my ****.ISPF.ISPPROF with no troubles at all
just after exiting ISPF

Re: Deleting DS says its in use

PostPosted: Thu Oct 04, 2012 7:00 pm
by gowthamgyaa
@Enricho
Thanks for your kind reply.
Actually it was the same case which you mentioned i.e., ENQUE.
The contents inside that ****.ISPF.IFPPROF are

ISFPROF
ISPEDIT
ISPRPROF
ISPSPROF
ISRLIST
ISRPLIST

What can i do now.


Kind regard's
gyaa