Deleting DS says its in use



TSO Programming, ISPF, SDF, SDSF and PDF, FTP, TCP/IP Concepts, SNA & SNA/IP etc...

Deleting DS says its in use

Postby gowthamgyaa » Wed Oct 03, 2012 6:41 pm

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
gowthamgyaa
 
Posts: 101
Joined: Wed Sep 05, 2012 11:18 pm
Has thanked: 67 times
Been thanked: 0 time

Re: Deleting DS says its in use

Postby NicC » Wed Oct 03, 2012 6:47 pm

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.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: Deleting DS says its in use

Postby gowthamgyaa » Wed Oct 03, 2012 8:29 pm

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
gowthamgyaa
 
Posts: 101
Joined: Wed Sep 05, 2012 11:18 pm
Has thanked: 67 times
Been thanked: 0 time

Re: Deleting DS says its in use

Postby enrico-sorichetti » Wed Oct 03, 2012 8:31 pm

leave ISPF and use the TSO delete command
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2994
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Re: Deleting DS says its in use

Postby NicC » Wed Oct 03, 2012 9:12 pm

Kindly guide me to this

I did - read ALL of what I wrote.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: Deleting DS says its in use

Postby gowthamgyaa » Wed Oct 03, 2012 9:20 pm

Thank you very much enrico & Nicc, i'l do wat u said.


regard's
gyaa
gowthamgyaa
 
Posts: 101
Joined: Wed Sep 05, 2012 11:18 pm
Has thanked: 67 times
Been thanked: 0 time

Re: Deleting DS says its in use

Postby steve-myers » Thu Oct 04, 2012 4:00 am

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.

These users thanked the author steve-myers for the post:
gowthamgyaa (Thu Oct 04, 2012 6:06 pm)
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: Deleting DS says its in use

Postby gowthamgyaa » Thu Oct 04, 2012 6:15 pm

@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
gowthamgyaa
 
Posts: 101
Joined: Wed Sep 05, 2012 11:18 pm
Has thanked: 67 times
Been thanked: 0 time

Re: Deleting DS says its in use

Postby enrico-sorichetti » Thu Oct 04, 2012 6:36 pm

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
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2994
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Re: Deleting DS says its in use

Postby gowthamgyaa » Thu Oct 04, 2012 7:00 pm

@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
gowthamgyaa
 
Posts: 101
Joined: Wed Sep 05, 2012 11:18 pm
Has thanked: 67 times
Been thanked: 0 time

Next

Return to TSO & ISPF

 


  • Related topics
    Replies
    Views
    Last post