IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

what is the meaning of "%used" space of a Dataset


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
getvichu2000

New User


Joined: 19 Aug 2008
Posts: 4
Location: Phoenix

PostPosted: Wed Aug 20, 2008 11:46 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Aug 20, 2008 11:54 pm
Reply with quote

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
View user's profile Send private message
getvichu2000

New User


Joined: 19 Aug 2008
Posts: 4
Location: Phoenix

PostPosted: Thu Aug 21, 2008 12:01 am
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Aug 21, 2008 12:14 am
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Aug 21, 2008 12:17 am
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Aug 21, 2008 12:28 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Aug 21, 2008 4:41 pm
Reply with quote

LOL expat -- I'll be happy to calculate them for you icon_biggrin.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts PuTTY - "User is not a surrogate... IBM Tools 5
No new posts Allocated cylinders of a dataset DB2 12
Search our Forums:

Back to Top