Page 1 of 1
Get the size of the tape on mainframes
Posted: Thu Jun 05, 2025 4:36 pm
by Rashid
Hi,
How can we get the size of a TAPE dataset on mainframes? Please guide.
Re: Get the size of the tape on mainframes
Posted: Thu Jun 05, 2025 4:39 pm
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.
Re: Get the size of the tape on mainframes
Posted: Thu Jun 05, 2025 8:45 pm
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.