Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Formula for calculating CI size for VSam dataset

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
ilan

New User


Joined: 24 Feb 2006
Posts: 2

PostPosted: Fri Feb 24, 2006 11:38 am    Post subject: Formula for calculating CI size for VSam dataset
Reply with quote

hi,

Please let me know if you have the formula for calculating the Control interval size ( both data CI & Index CI) for VSAM data set. the information i have is the lecord length is 150bytes (fixed). Please eloborate more about the variables used in the formula. as soon as possilbe.
Back to top
View user's profile Send private message

spiderman

New User


Joined: 22 Feb 2006
Posts: 2

PostPosted: Fri Feb 24, 2006 12:28 pm    Post subject: Re: Formula for calculating CI size for VSam dataset
Reply with quote

ilan wrote:
hi,

Please let me know if you have the formula for calculating the Control interval size ( both data CI & Index CI) for VSAM data set. the information i have is the lecord length is 150bytes (fixed). Please eloborate more about the variables used in the formula. as soon as possilbe.


HI,
I dont think there is any formuale for calculating the CI size. As per my knowledge, the control interval can range from 512 to 32,768 bytes in size. If the size is between 512 and 8,192 bytes, a multiple of 512 should be specified. If it is between 8,192 and 32,768 bytes, a multiple of 2,048 should be specified. If the size is not a multiple of the appropriate value, VSAM rounds the size up to the next appropriate multiple. If CONTROLINTERVALSIZE is specified for the INDEX component of a KSDS, the specified size must be 512, 1,024, 2,048, or 4,096.

Regards
Spider
Back to top
View user's profile Send private message
ilan

New User


Joined: 24 Feb 2006
Posts: 2

PostPosted: Fri Feb 24, 2006 1:40 pm    Post subject: Re: Formula for calculating CI size for VSam dataset
Reply with quote

hi

thank you for your immediate response. even i know the same thing. but it is stated that " size of the control interval depends on the maximum size of the data records and the amount of buffer space you provide" in a material. if this is true there must be a formulae / way to calculate the CI size with the help of record lenght, RDF size, CIDF size and the freespace percentage.

Also if we can get the number of records in a CI we can calculate the CI size. if you have any idea how to get the number of records in a CI, please let me know.
Back to top
View user's profile Send private message
spiderman

New User


Joined: 22 Feb 2006
Posts: 2

PostPosted: Fri Feb 24, 2006 2:09 pm    Post subject:
Reply with quote

Hi,

For fixed record length files, the RDF will give the number of records in a CI. There will be 2 RDFs for fixed length records in one CI. One RDF will contain the number of records and other will contain the record length. CIDF will contain the amount of freespace. RDF will be of 3 bytes and CIDF will be 4bytes. Inside the RDF i donno how to check the number of records. I think whatever i written above, you also know. Only this much i am aware of.

Regrds
Back to top
View user's profile Send private message
satya123
Warnings : 1

New User


Joined: 18 Aug 2006
Posts: 57

PostPosted: Fri Aug 25, 2006 12:15 pm    Post subject:
Reply with quote

hi,
please tell me if 2 RDFs are present then how you say RDF will have 3 bytes?????It must be 6 bytes of RDF and 4 bytes of CIDF..Please clarify...

satya123
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Fri Aug 25, 2006 1:43 pm    Post subject:
Reply with quote

Aalthough there is no single formula, the fine manual provides some guidelines. Some sites use their own CI calculators. I've seen one written in REXX and another one in CLIST.

O.
Back to top
View user's profile Send private message
satya123
Warnings : 1

New User


Joined: 18 Aug 2006
Posts: 57

PostPosted: Fri Aug 25, 2006 3:36 pm    Post subject:
Reply with quote

My question is whether we have 2 RDFs or One????If two then total how many bytes of RDF presents in one CI?????
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Compare VSAM files using DFSORT pshongal DFSORT/ICETOOL 5 Thu Nov 23, 2017 10:24 am
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us