
KSAM/V
KSAM is an acronym for Keyed Sequential Access Method. KSAM/V pro vides a disc le structure for organizing and accessing records in a le according to the con tents of key elds. It is
Sequentially, according to a sequence dened b y key values.
Randomly, by nding the record that has a eld matc hing a specic key value. A KSAM le consists of t wo associated MPE/iX les:
A data le containing all of the le's data records
A key le, containing one or more balanced trees that main tain primary and alternate logical sequences for the data records.
The data le contains the actual data. It can consist of
The associated k ey le must be used to access the data records.
KSAM procedures add, delete, read, and update KSAM records and are callable from user applications.
KSAMUTIL allows y ou to manipulate, v erify, and analyze KSAM les. Because KSAM le structure is dieren t from MPE/iX le structure, y ou cannot create a KSAM le with the MPE/iX command :BUILD . You can rename it with the MPE/iX command :RENAME , but it is inadvisable because it destro ys the cross reference bet ween the data le and the associated key le. Therefore, it is extremely useful to ha ve KSAMUTIL commands that are designed to operate specically on KSAM les and preserv e the proper cross referencing.
Figure
Figure