VSAM LRECL for a primary index
The format of a VSAM LCRECL for a primary index depends on whether it is currently on a storage device, in the buffer pool, or being returned by the buffer handler.
Format on a storage device or in the buffer pool
The following figure shows the format on a storage device or in the buffer pool.

Note:
- 1.
- Four-byte RBA pointer to VSAM database root segment whose key value is the same as the value in the next field of this segment.
Format as returned by the buffer handler
The following figure shows the VSAM LRECL format as returned by buffer handler (1).

- 1.
- Same as buffer pool format, except for pointer and segment code in front.
- 2.
- Four-byte pointer with value of zero.
- 3.
- The segment code value is 01.
- 4.
- Four-byte RBA pointer to VSAM database root segment whose key value is the same as the value in the next field of this segment.
VSAM block format on a storage device or in the buffer pool
The following figure shows the VSAM block format on device and in buffer pool.
