Get the size of the tape on mainframes

Other Mainframe related questions which attracts you and there is no suitable Forum you find for it and related FAQs.
Rashid
Registered Member
Posts: 14
Joined: Mon Dec 09, 2013 11:02 pm

Get the size of the tape on mainframes

Post by Rashid »

Hi,

How can we get the size of a TAPE dataset on mainframes? Please guide. 
Rashid
Registered Member
Posts: 14
Joined: Mon Dec 09, 2013 11:02 pm

Re: Get the size of the tape on mainframes

Post by Rashid »

I forgot to mention that I have searched about it, and they talk about looking at Tape Management System. Is that the only solution? And how do I know if I have such a system in our system? Please help.
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1905
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa

Re: Get the size of the tape on mainframes

Post by Robert Sample »

A tape management system is, by far, the easiest way to get what you want.  Ask someone at your site (system programmer, operator, or other systems person) to find out if your site uses a tape management system.  

If your site doesn't use a tape management system, your next best bet would be to write a program in the language of your choice (SAS or COBOL will both do this) to read the tape dataset and add up the record lengths which will give you approximately the size.  I say approximately because tapes are written in physical blocks and you cannot directly count the blocks.
Post Reply Previous topicNext topic

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “Other Mainframe Topics, Off-Topics, FAQs.”