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
 

 

Obtaining Space utilization of a dataset

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
raam

New User


Joined: 29 Jan 2007
Posts: 13
Location: mumbai

PostPosted: Thu Jun 14, 2007 3:53 pm    Post subject: Obtaining Space utilization of a dataset
Reply with quote

Hi,

I need to obtain the exact space utilization in % for a dataset using Rexx program. ( i.e i want information of space utilization when you space navigate a dataset through 3.4 ).

Im using the function LISTDSI to obtain other information PRIMARY allocation etc.

But the information of space utilization in % is alone im not able to get.

Please give me a suitable way to obtain this.
Atleast having the exact bytes used by the dataset is ok with me.

Regards,
Raam
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 Jun 14, 2007 4:06 pm    Post subject:
Reply with quote

I just searched the forum for you and found this topic

http://www.ibmmainframes.com/viewtopic.php?t=20072&highlight=listdsi

If you divide the amout of used space by the amount of allocated space and multiply by 100 you will get the percentage of space used.
Back to top
View user's profile Send private message
raam

New User


Joined: 29 Jan 2007
Posts: 13
Location: mumbai

PostPosted: Thu Jun 14, 2007 4:47 pm    Post subject: Re: Obtaining Space utilization of a dataset
Reply with quote

Hi,

My requirement is not that, i need the exact byte usage.

For eg. If the Allocated cylinders = 1 and used cylinders = 1,

As per your formual Usage is 100%, but it is displaying 20% when you space navigate the dataset using 3.4 you will get fewer that this because the exact byte usage should be less than cylinder capacity.

So we need the exact byte used to obtain the exact %utilization.

% Utilization = ( usage in bytes / allocated bytes ) * 100

So is there any mechanism to obtain the exact byte used by dataset to calculate the % utilization.

Regards,
Elamaran S icon_rolleyes.gif
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: Fri Jun 15, 2007 12:22 am    Post subject:
Reply with quote

What is the problem here that dictates that actual byte usage precision is required. I have been doing storage management for about 20 years and have never ever come across a situation where I needed byte precision accuracy.

If you allocation is one cyl, and you are wanting to know exactly how many usable bytes left in that cylinder, may I suggest using secondary extents and forget about the worrying.

If multiple extents occur, products like DFSMShsm will consolidate multiple extent datasets as a matter of course during the daily processing cycle, which then in effect increases the number of secondary extents available for further alloaction.

Look at DCOLLECT - that goes down to Kb allocation and usage, but then you need to adjust that to the device geometry of the DASD that you are using to get estimated percentages.
Back to top
View user's profile Send private message
raam

New User


Joined: 29 Jan 2007
Posts: 13
Location: mumbai

PostPosted: Fri Jun 15, 2007 3:37 pm    Post subject: Not clear
Reply with quote

Hi,
Thanks for the info.

But im not able to understand your terminologies.

Can give me some example or the rexx function to be used to obtain the exact byte allocation.

What's that DECOLLECT

Regards,
Elamaran S
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: Fri Jun 15, 2007 4:10 pm    Post subject: Re: Not clear
Reply with quote

raam wrote:
Hi,
Thanks for the info.
But im not able to understand your terminologies.

I am using industry standard terminologies which you will need to learn and understand very quickly.

Quote:
Can give me some example or the rexx function to be used to obtain the exact byte allocation.

As my previous post, I can NOT get down to byte allocations or usages. Also as my previous post, if you are so interested in byte precision please follow my suggestions.

Quote:
What's that DECOLLECT

The link below is to the IDCAMS manual which covers DCOLLECT very comprehensively.
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DGT2I230/CCONTENTS?DT=20040628101835
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 -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
No new posts VSAM Space Allocation mrgnndhmk JCL & VSAM 7 Sat Apr 22, 2017 12:42 am
No new posts LISTCAT on a dataset with symbolic pa... shreya19 JCL & VSAM 5 Fri Apr 07, 2017 5:43 pm
This topic is locked: you cannot edit posts or make replies. Need help in estimating space of unlo... ashek15 IMS DB/DC 12 Fri Apr 07, 2017 5:11 am


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