Datasets Comparison (for Beginners)


VSAM supporting access modes and record length -


File Organization Access Type Record Length
Sequential Access Random Access Dynamic Access Fixed-length Variable-length
ESDS Yes No No Yes Yes
KSDS Yes Yes Yes Yes Yes
RRDS Yes Yes Yes Yes Yes

ESDS, KSDS, RRDS, VRRDS, and LDS Comparison -


ESDS KSDS Fixed-length RRDS Variable-length RRDS LDS
What is the method for sequential access? Entry/Inserting order Primary key ascending order RRN order RRN order No record level processing
What are the types of record format? Fixed-length
Variable-length
Spanned records
Fixed-length
Variable-length
Spanned records
Fixed-length Variable-length No record level processing
What is the method for direct access? RBA Key or RBA RRN RRN Acess with DIV (Data-In-Virtual)
What are the Components the dataset have? DATA Component DATA and
INDEX Components
DATA Component DATA and
INDEX Components
DATA Component
Can we delete the record? Record can't be deleted. We can reuse the record for a record of the same length. Deleting the record space becomes free space. Slot freeed by deleting the record can be reused. Deleting the record space becomes free space. No record level processing
Can we reuse the deleted record space? No Yes Yes Yes No record level processing
Where are new records added? End of the file Anywhere RRN Slot RRN Slot CI
Was spanned Records allowed? Allowed Allowed No spanned records No spanned records No spanned records