> We have a VSAM KSDS with AIX that is originally defined and loaded with
> FREESPACE(0 0). However there is a program further down the line that
> writes new random records to it (don't ask!) anyway. Can someone give me
> more detail on how VSAM handles this. I think it does a CA split and
> carries on but I can find no definitive description of the process.

I believe ( and expect to be corrected) that the process works like this:

VSAM sees the need to perform a CI split. Since the CA has no extra CIs, it
must perform a CA split first. It formats a new cylinder at the end of the
used space with physical records. It may extend the data set first, if
necessary. Then half of the CIs from the original CA are moved to the new
CA. The index is updated appropriately. The necessary CI is split into two
approximately equal-sized CIs. The index is again updated appropriately.
The new record is inserted into the appropriate CI.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to