Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: what is the meaning of "%used" space of a Dataset
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Wed Aug 20, 2008 11:54 pm    Post subject: Reply to: what is the meaning of "%used" space of
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    Post subject: Reply to: what is the meaning of "%used" space of
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: 7932
Location: Bellevue, IA

PostPosted: Thu Aug 21, 2008 12:14 am    Post subject:
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: 7932
Location: Bellevue, IA

PostPosted: Thu Aug 21, 2008 12:17 am    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Aug 21, 2008 12:28 pm    Post subject:
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: 7932
Location: Bellevue, IA

PostPosted: Thu Aug 21, 2008 4:41 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts Amount field is getting corrupted whe... thesumitk SYNCSORT 5 Tue Oct 18, 2016 8:20 pm
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm
No new posts Allocate dataset withour BLKSIZE Susanta CLIST & REXX 2 Thu Sep 22, 2016 11:51 am
No new posts hot to get details when "EXEC CI... Andi1982 CICS 11 Tue Sep 20, 2016 5:01 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us