Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Uncataloging a Tape Dataset...

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Uncataloging a Tape Dataset...
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

Site Director


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

PostPosted: Wed Mar 17, 2010 10:10 pm    Post subject:
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    Post subject: Reply to: Uncataloging a Tape Dataset...
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    Post subject:
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    Post subject: Reply to: Uncataloging a Tape Dataset...
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    Post subject:
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

Site Director


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

PostPosted: Thu Mar 18, 2010 2:17 am    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Thu Mar 18, 2010 2:45 am    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Thu Mar 18, 2010 10:46 am    Post subject: Reply to: Uncataloging a Tape Dataset...
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    Post subject:
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm
No new posts Allocate dataset withour BLKSIZE Susanta CLIST & REXX 2 Thu Sep 22, 2016 11:51 am
No new posts stacking files on a tape Pedro JCL & VSAM 7 Wed Aug 17, 2016 11:11 pm
No new posts dataset copy question - REPRO or some... atulxp TSO/ISPF 2 Wed Aug 03, 2016 10:56 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us