Midrange News for the IBM i Community


Posted by: Bob Cozzi
Rogue Programmer
Cozzi Productions, Inc.
Chicagoland
Space/Capacity of a Tape in the tape drive
has no ratings.
Published: 07 Nov 2011
Revised: 23 Jan 2013 - 2805 days ago
Last viewed on: 25 Sep 2020 (4899 views) 

Using IBM i? Need to create Excel, CSV, HTML, JSON, PDF, SPOOL reports? Learn more about the fastest and least expensive tool for the job: SQL iQuery.

Space/Capacity of a Tape in the tape drive Published by: Bob Cozzi on 07 Nov 2011 view comments(2)

Return to midrangenews.com home page.
Sort Ascend | Descend

COMMENTS

(Sign in to Post a Comment)
Posted by: DaleB
Premium member *
Reading, PA
Comment on: Space/Capacity of a Tape in the tape drive
Posted: 8 years 10 months 21 days 10 hours 16 minutes ago

Nothing comes to mind. You could kind of kludge it from DSPTAP to an outfile (there's an API equivalent); I think you'll only need *LABELS. You'll have to build a lookup table of some kind to determine theoretical tape capacity from the density code. Hopefully there's enough to be able to tell the individual file sizes; might have to calculate from block size and number of blocks.

Try it interactively to see what all is there. Interactive DSPTAP goes one label (file) at a time, so you don't have to read the entire tape.

One thing that may complicate this, even if it all looks good, is how compression figures into it. The sizes you get from the VOL2 labels will be after compression (what's actually on the tape). You may need to go to *SAVRST to get the sizes of what was saved, though it might be close enough if you just look at what's on the system now.

Posted by: bobcozzi
Site Admin ****
Chicagoland
Comment on: Space/Capacity of a Tape in the tape drive
Posted: 8 years 10 months 20 days 13 hours 54 minutes ago

Couldn't find anything good enough to use, so I just saved what I could and waited for the Mount Next Tape message. Fortunately I didn't get it.

I did add up the block size x blocks saved and did some rough calcs using those figures--I'm saving about 1.2GB on a tape designed for up to 2.5GB so I think I'm good for now.

Thanks, Dale.