Using Alternate Indexes for VSAM Data Sets |
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 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.
| |||
|
AIXKL is the alternate-key length. (See the KEYS parameter.)
BCKL is the base cluster's prime-key length. (You can issue the AMS LISTCAT command to determine the base cluster's prime-key length.)
n=1 when the UNIQUEKEY parameter is specified. (In this case, RECSZ is also the maximum record size.)
n is equal to the number of base cluster records that have the same alternate index key when NONUNIQUEKEY is specified.
In the preceding examples, the average record size for alternate key STATE was calculated as follows:
Specifying the same value for average and maximum identifies the records as fixed length. See IBM documentation for more information on calculating record size.
Copyright © 2008 by SAS Institute Inc., Cary, NC, USA. All rights reserved.