Previous Page | Next Page

Using Alternate Indexes for VSAM Data Sets


Calculating Record Size

The AMS RECORDSIZE parameter requires the average and maximum record size, in bytes, of the alternate index record. When you calculate the maximum record size, if the alternate index record spans control intervals, the RECORDSIZE parameter can be larger than the CONTROLINTERVALSIZE. Use the following formula to calculate the maximum record size of spanned records:

MAXLRECL=CI/CA x (CISZ - 10)

MAXLRECL is the maximum spanned record size. CI/CA represents the number of control intervals per control area. CA is the number of control areas. CISZ is the quantity control interval size.

Use the following formulas to determine the average size of the alternate index record when the alternate index supports ESDS or KSDS.

ESDS:

RECSZ= 5 + AIXKL + (n x 4)

KSDS:

RECSZ= 5 + AIXKL + (n x BCKL)

In the preceding examples, the average record size for alternate key STATE was calculated as follows:

5 + 2 + (3 x 4)= 19 for the ESDS

5 + 2 + (3 x 9)= 34 for the KSDS

Specifying the same value for average and maximum identifies the records as fixed length. See IBM documentation for more information on calculating record size.

Previous Page | Next Page | Top of Page