Chapter Contents

Previous

Next
BYKEY

BYKEY



Designates one or more items as sort keys

Optional statement
Applies to: access descriptor and view descriptor


Syntax
Details

Syntax

BYKEY variable-identifier<=> YES|NO
<...variable-identifier-n<=> YES|NO>;


Details

The BYKEY statement designates one or more items as BY keys and in a view descriptor, also selects them for the view.

The BYKEY statement cannot be used to change the BYKEY value in a view descriptor if the ASSIGN= statement in the access descriptor from which the view descriptor is derived has a value of YES (or Y).

The BYKEY statement applies to data items. The variable-identifier argument can be one of the following:

For example, if you want to make the third item a BY key, issue the following statement:

bykey 3=y;


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.