View previous topic :: View next topic
|
Author |
Message |
getvichu2000
New User
Joined: 19 Aug 2008 Posts: 4 Location: Phoenix
|
|
|
|
When we navigate in ispf 3.4 for any dataset we get the storage informations like tracks %used XT device
In the above informaton what is "%used"?
Is it the %used on both primary and extended tracks
I need that to calculate the size of dataset in bytes
Also what is the way to find the size of the dataset in bytes using the above information |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
Also what is the way to find the size of the dataset in bytes using the above information
|
the allocated or the used ??
the percentage will be anyhow in terms of allocation units....
for example a 15 tracks dataset containing one record
will report 6.something% utilization if allocated in tracks
will report a 100% utilization if allocated in cylinders |
|
Back to top |
|
|
getvichu2000
New User
Joined: 19 Aug 2008 Posts: 4 Location: Phoenix
|
|
|
|
Can you please help me in calculating the size of the dataset in bytes using the below storage information of a dataset which will be displayed in ispf 3.4
Command - Enter "/" to select action Tracks %Used XT
MYDATA.FILE1 30 80 2 |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
You cannot calculate exact size of a dataset in bytes based on the data you're provided; the only way I know to find exact size is to read every record summing the individual record lengths.
You can approximate by 30 tracks times 80% = 24 tracks used (this could be 23 tracks and a record up to 24 full tracks used -- you don't know). Find the blocksize from ISPF 3.4, adjust to tracks, and multiply by 24 to get the approximate byte count. It'll be something less than 12,692,736 bytes. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Sorry, total should be 1,359,936 or less -- don't know WHAT I hit on calculator to get 12 million bytes! |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Robert Sample wrote: |
Sorry, total should be 1,359,936 or less -- don't know WHAT I hit on calculator to get 12 million bytes! |
Can I borrow it for submitting my monthly invoice ? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
LOL expat -- I'll be happy to calculate them for you |
|
Back to top |
|
|
|