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

Uncataloging a Tape Dataset...


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

New User


Joined: 08 Oct 2007
Posts: 38
Location: Delhi

PostPosted: Wed Mar 17, 2010 9:13 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Wed Mar 17, 2010 10:10 pm
Reply with quote

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
View user's profile Send private message
kbrahma

New User


Joined: 08 Oct 2007
Posts: 38
Location: Delhi

PostPosted: Thu Mar 18, 2010 12:03 am
Reply with quote

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
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Thu Mar 18, 2010 1:18 am
Reply with quote

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
View user's profile Send private message
kbrahma

New User


Joined: 08 Oct 2007
Posts: 38
Location: Delhi

PostPosted: Thu Mar 18, 2010 1:26 am
Reply with quote

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
View user's profile Send private message
kbrahma

New User


Joined: 08 Oct 2007
Posts: 38
Location: Delhi

PostPosted: Thu Mar 18, 2010 1:49 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Thu Mar 18, 2010 2:17 am
Reply with quote

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
View user's profile Send private message
kbrahma

New User


Joined: 08 Oct 2007
Posts: 38
Location: Delhi

PostPosted: Thu Mar 18, 2010 2:39 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Thu Mar 18, 2010 2:45 am
Reply with quote

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.
icon_confused.gif

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Mar 18, 2010 10:46 am
Reply with quote

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
View user's profile Send private message
kbrahma

New User


Joined: 08 Oct 2007
Posts: 38
Location: Delhi

PostPosted: Thu Mar 18, 2010 12:01 pm
Reply with quote

@ 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
View user's profile Send private message
kbrahma

New User


Joined: 08 Oct 2007
Posts: 38
Location: Delhi

PostPosted: Thu Mar 18, 2010 12:19 pm
Reply with quote

Oops, I again missed out the text
Quote:
"command to do the same as 3.4 option 'U'."
while reading. My bad icon_redface.gif (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
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Fri Mar 19, 2010 9:58 pm
Reply with quote

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
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 FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts Deleting a Tape file JCL & VSAM 14
Search our Forums:

Back to Top