View previous topic :: View next topic
|
Author |
Message |
kbrahma
New User
Joined: 08 Oct 2007 Posts: 38 Location: Delhi
|
|
|
|
I am trying to uncatalog a tape dataset in TSO so that the TMS software (CA1) in our site puts it in the scratch pool (expiry dates are set to CATLG for these tapes, so uncataloging it should do the trick).
I am using the following TSO command
Code: |
"alloc fi(tapeds) da('dataset') old reuse uncatalog" |
to uncatalog the dataset, while I am successful in doing so, it's taking a fair amount of time (almost a minute). I was wondering if there is a faster way to uncatalog the tape based datasets. I have noticed that when I issue the "U" command in front of the tape dataset in 3.4, it uncatalogs it almost instantly. So why is the TSO uncatalog command taking so much time?
Is there a way I can use the ISPF commands to uncatalog the tape dataset (maybe LM services)? and would that be quicker?
Using a batch IDCAMS job is the last option I want to take as I am using a lot of interactive panels in my program. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
when I issue the "U" command in front of the tape dataset in 3.4, it uncatalogs it almost instantly. So why is the TSO uncatalog command taking so much time? |
3.4 does not allocate (and mount) the tape. . . Your "alloc" does. |
|
Back to top |
|
|
kbrahma
New User
Joined: 08 Oct 2007 Posts: 38 Location: Delhi
|
|
|
|
Thanks Dick,
Point taken, so the time taken by the program is actually for allocating (or reallocating in this case) of tape dataset with different disposition parameter. That clears one of my question, so onto my next, is there another/faster way of doing it? I mean a TSO or ISPF command that would simply uncatalog (and not re-allocate). |
|
Back to top |
|
|
Bill Dennis
Active Member
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
|
|
|
|
In TSO (running REXX) you can issue a
Code: |
DELETE 'entry.name' NOSCRATCH |
command to do the same as 3.4 option 'U'. |
|
Back to top |
|
|
kbrahma
New User
Joined: 08 Oct 2007 Posts: 38 Location: Delhi
|
|
|
|
Thanks Bill for the reply,
As long as the command is going to make the tape available for scratch pool, I can use it. Just want to make sure, if it would (I am sorry for this type of question but I have very little idea how the deleted tapes are delt with). |
|
Back to top |
|
|
kbrahma
New User
Joined: 08 Oct 2007 Posts: 38 Location: Delhi
|
|
|
|
Post Script:
Just to let you guys know that I do understand that tapes are not actually "deleted" when a delete command is issued. The data can still be retrieved from the tape after deleting it.
I just want to know if I do: Address TSO "Delete "tapeds" NOSCRATCH", would it make the tape available for the scratch pool so that it could be used again. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
would it make the tape available for the scratch pool so that it could be used again. |
That would depend on how your tape management system is set up. . .
Suggest you talk with your storage management people to make sure the tape is in the scratch pool. |
|
Back to top |
|
|
kbrahma
New User
Joined: 08 Oct 2007 Posts: 38 Location: Delhi
|
|
|
|
Thanks again Dick for the recommendation, I will get in touch with the storage guys. Untill then I will also keep searching for way to uncatalog a dataset without re-allocating it. Just needed some kind of confirmation if it is possible or not, so that I can direct my search to that specific elusive command.
Till now, I have not had much luck though. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
Untill then I will also keep searching for way to uncatalog a dataset without re-allocating it. Just needed some kind of confirmation if it is possible or not, so that I can direct my search to that specific elusive command. |
Is there some reason you do not use Bill's suggestion:
Quote: |
In TSO (running REXX) you can issue a Code:
Code: |
DELETE 'entry.name' NOSCRATCH |
command to do the same as 3.4 option 'U'. |
|
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
and also remember, if You are using multifile tapes, that the tapes will be returned to the scratch pool only when the last dataset is expired |
|
Back to top |
|
|
kbrahma
New User
Joined: 08 Oct 2007 Posts: 38 Location: Delhi
|
|
|
|
@ Dick: Well as I said, I am not yet sure if "Deleting" would make the tapes available in the scratch pool (I am going to ask the storage people as you suggested before trying that out).
@ Enrico: Thanks for pointing that out, I will keep that in mind, but currently, since I want to uncatalog/delete them online. I am asking the user to do it one at a time. The user can select which one can stay and which one can go. As soon as the user hits enter the tape should get uncatalog or deleted and he can process the others if he wishes too. Since I am using a lot of filters in my program, he should only get a maximum of 4-5 tape entries to process (according to the parameters passed). |
|
Back to top |
|
|
kbrahma
New User
Joined: 08 Oct 2007 Posts: 38 Location: Delhi
|
|
|
|
Oops, I again missed out the text
Quote: |
"command to do the same as 3.4 option 'U'." |
while reading. My bad (Got to learn how to read s-l-o-w-l-y).
If it's the same I will give it a shot right away.
Thanks again everyone for all the help. |
|
Back to top |
|
|
Bill Dennis
Active Member
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
|
|
|
|
If your CA-1 EXPDT=CATALOG then my sample DELETE NOSCRATCH will make it available to be scratched when the scratchlist job is run. |
|
Back to top |
|
|
|