Relative Record & Key Sequenced Data Set

November 8, 2006 / General Discussion

Relative Record Data Sets (RRDS) and Key Sequenced Data Sets (KSDS) are types of data storage used in VSAM (Virtual Storage Access Method) systems. They are widely used in mainframe environments to store and manage structured data efficiently.

These datasets are accessed based on file position or key values, allowing fast retrieval and organization of data. Understanding RRDS and KSDS is important for system administrators and developers working with mainframes or legacy data storage systems.

Relative Record Data Set (RRDS)

  • Data is stored in fixed-length records.

  • Each record can be accessed by its relative record number (position in the dataset).

  • Simple structure, making it suitable for sequential or random access.

  • Ideal for applications that require quick positional access to records.

Key Sequenced Data Sets

  • Data records are assigned a unique key.

  • Records are physically stored in a separate data file and index file.

  • Keys allow direct access to any record based on its value.

  • Can handle variable-length records, making it more flexible than RRDS.

  • Commonly used in business applications where fast searching by key is required.