View previous topic :: View next topic
|
Author |
Message |
rahulbank
New User
Joined: 25 Sep 2008 Posts: 66 Location: Bengaluruuuuuu
|
|
|
|
Hi,
Is there a way to find out the size of a Dsn in terms of either tracks or bytes which resides on a TAPE(and this is not an HSM tape). |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
If you know the number of blocks on the tape and the block size, you can compute it easily enough. What information do you have about the tape? |
|
Back to top |
|
|
rahulbank
New User
Joined: 25 Sep 2008 Posts: 66 Location: Bengaluruuuuuu
|
|
|
|
I know the number of blocks the dsn has on the tape by viewing the job log in sar and the block size too of the tape.... |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Multiply block size times number of blocks to get bytes in file. Use the usual formula to convert bytes into tracks or cylinders. And be aware the counts may be a little different if the file is variable instead of fixed length records. |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
...and even for an FB file, the last block may not be a full block. |
|
Back to top |
|
|
rahulbank
New User
Joined: 25 Sep 2008 Posts: 66 Location: Bengaluruuuuuu
|
|
|
|
Thanks for the answer I had this question in my mind for along time...Two more things...
Do you know how to convert the tracks to blocks.
Also in case the file is variable is there a way to calculate the same tape DSN. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
I'm not 100% sure I understand what you mean by "convert the tracks to blocks". Your original question was about a tape -- which has no tracks to convert. A 3390 track is blocked typically around half track blocking which is 27998 bytes, although any block size can be used.
A variable length file is much harder to calculate. For example, if the program writing the records is COBOL, the AWO compiler option affects the file. If you have SYNCSORT installed at your site, the HISTOGRM variable record analyzer will give you the numbers to make your calculation. There may be an equivalent DFSORT utility but I've never looked for one so you'd have to ask on the DFSORT forum. |
|
Back to top |
|
|
|