KEY Statement

Specifies a key field that governs the order that records are read.

Type: Optional statement
Applies to: access descriptor or view descriptor

Syntax

KEY<=> <"> Datacom-short-name<"> ;

Details

The KEY statement specifies the CA-Datacom/DB short name for a Default Key in the CA-Datacom/DB table. The Default Key value governs the order in which records are read. The Default Key is an optional key that defaults to the Native Key. The Native Key governs how records are stored and maintained.
You can specify another key as the Default Key if you want the records processed in a certain order. You do not want to specify a SORT clause to achieve that result. You can also specify a Default Key with the DDBKEY= data set option when you execute a SAS procedure.
If the CA-Datacom/DB short name contains special characters or national characters, enclose the name in quotation marks.