The LIBNAME Statement for Relational Databases |
Specifies the number of rows that are
driven by the keyset.
Default value: |
0
|
Valid in: |
SAS/ACCESS LIBNAME
statement and some DBMS-specific connection options. See the DBMS-specific
reference section for details.
|
DBMS support: |
Microsoft SQL Server, ODBC
|
KEYSET_SIZE=number-of-rows
|
-
number-of-rows
-
is an integer with a value between 0 and
the number of rows in the cursor.
This option is valid only when CURSOR_TYPE=KEYSET_DRIVEN.
If KEYSET_SIZE=0, then the entire cursor is
keyset driven.
If you specify a value greater than 0 for KEYSET_SIZE=, the chosen value indicates
the number of rows within the cursor that functions as a keyset-driven cursor.
When you scroll beyond the bounds that are specified by KEYSET_SIZE=, the
cursor becomes dynamic and new rows might be included in the cursor. This
becomes the new keyset and the cursor functions as a keyset-driven cursor
again. Whenever the value that you specify is between 1 and the number of
rows in the cursor, the cursor is considered to be a mixed cursor because
part of the cursor functions as a keyset-driven cursor and part of the cursor
functions as a dynamic cursor.
To apply this option to an individual data set, see
the
KEYSET_SIZE= Data Set Option.
CURSOR_TYPE= LIBNAME Option
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.