Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 9405

JCL & VSAM :: RE: Several errors during building alternate index for KSDS file

$
0
0
Author: Robert Sample
Posted: Wed Jul 06, 2016 7:59 pm (GMT 5.5)

Perhaps you are not allowing for enough duplicates? The manual says the formula for alternate index record size is 5 + AIXKL + (n * BCKL) or 5 plus the alternate index key size plus base cluster key length times the number of duplicates you allow (32767 is the maximum). So 5 + 109 + 2*42 is 198 bytes, just 2 short of the 200 you specified. So if there are 3 duplicates of the alternate index key, you're going to have problems.

I suspect you'll find wasted space in your data set, too, as the CI sizes seem pretty small and not designed to hold the data.
_________________
TANSTAAFL

The first rule of code reuse is that the code needs to be worth re-using.

"We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil." -- Donald Knuth


Viewing all articles
Browse latest Browse all 9405

Trending Articles