If you
plan to use a data field often in selection criteria, you can designate
it as a key field. You designate a key field by specifying the descriptor
option in the ADACMP utility data definition statement. When a data
field is a descriptor field,
ADABAS maintains and stores its values in an inverted list. An
inverted list contains the different values of a descriptor
data field, along with the count and the ISNs of the logical records
that contain each value.
ADABAS descriptors can also be defined so that inverted lists contain
unique values only.
Specifying
ADABAS descriptors speeds up the selection
process considerably since
ADABAS is able to access key values directly. Also, specifying descriptors
controls read sequence when reading
ADABAS data sequentially.
Several descriptor types
can be specified for a data field. Each descriptor type is explained
below.
Note: In order for you to use SAS
variables corresponding to
ADABAS data fields in a SAS BY statement, an SQL ORDER BY clause, or a
view SORT clause, the data field must be designated as an
ADABAS descriptor. Regarding a WHERE clause,
there are conditions when you can use a nondescriptor data field and
when you must use a descriptor data field. These conditions are explained
in
Introduction to ACCESS Procedure Reference.