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

How to calculate the actual Usage of CI


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

New User


Joined: 09 Jan 2009
Posts: 88
Location: India

PostPosted: Thu Mar 19, 2009 5:53 pm
Reply with quote

Hi Guys,

Could some one help me in calculating the actual usage of Control intervals. We are in process of Tuning some jobs.

Let us say for instance..

A KSDS has fixed length 250 Byte records. Initial load of 100,000 Records.
Each day an estimated insertion of 15%' The file is used online .. and so the Largest CI size is 4096 Bytes..
From this how to get the Number of bytes that will be lost per CI?

Had a look at the post below..

www.ibmmainframes.com/about9281.html

Cheers
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu Mar 19, 2009 6:01 pm
Reply with quote

Are the records fixed or variable in length ?
Back to top
View user's profile Send private message
THINKSRINIII
Warnings : 1

New User


Joined: 09 Jan 2009
Posts: 88
Location: India

PostPosted: Thu Mar 19, 2009 6:16 pm
Reply with quote

Apologies.. Missed that.. Its of Fixed length.. It would be Great to know what will happen when its of Variable length too.. icon_biggrin.gif
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu Mar 19, 2009 6:31 pm
Reply with quote

For each CI, there will be one CIDF of four bytes, and as the records are fixed, only two RDF's each of three bytes. So your CI is 4096 in length, then removing the space taken by the VSAM internals, will leave you 4086 bytes per CI to store your data in.

For example with a 250 Fixed byte record, 4086 / 250 = 16.344 = 16
16 * 250 = 4000
4086 - 4000 = 86 wasted bytes per CI

For variable length records there is no precise method as the number of RDF's will vary, and each RDF is 3 bytes. Also the record lengths will vary and without knowing the length of each individual record in that CI it will be impossible to make an accurate calculation.
Back to top
View user's profile Send private message
THINKSRINIII
Warnings : 1

New User


Joined: 09 Jan 2009
Posts: 88
Location: India

PostPosted: Thu Mar 19, 2009 6:48 pm
Reply with quote

Thanks a lot Expat.. Your reply was Crisp..

One more question.. So, if I have to prevent the CI space from going waste..What would be the Best option..

1. Increase the CI size(up to 32K)
2. Any other Way??

Cheers.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Thu Mar 19, 2009 7:22 pm
Reply with quote

86 bytes / 4096 bytes is about 2.1% wasted space. This is not something to waste a lot of time on.

And Expat's calculations are based on a freespace of (0 ?); if you have a freespace value, the calculations are slightly different.
Back to top
View user's profile Send private message
THINKSRINIII
Warnings : 1

New User


Joined: 09 Jan 2009
Posts: 88
Location: India

PostPosted: Thu Mar 19, 2009 7:24 pm
Reply with quote

Thanks a lot Expat and Rob... icon_biggrin.gif

Cheers..
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Thu Mar 19, 2009 7:29 pm
Reply with quote

And, after the first insert, now two CIs with almost 50% free (wasted) space..... icon_wink.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 how to calculate SUM value for VB fil... DFSORT/ICETOOL 1
No new posts how to calculate SUM for VB file usin... JCL & VSAM 1
No new posts STEM usage in REXX CLIST & REXX 14
No new posts z/OS Modules Usage report using SMF 42 DFSORT/ICETOOL 2
No new posts Concatenate 2 fields (usage national)... COBOL Programming 2
Search our Forums:

Back to Top