Chapter Contents |
Previous |
Next |
Activities That Engines Regulate describes the types of activities that engines regulate.
Activities That Engines Regulate
Read/Write Activity |
Access Patterns |
sequential access | processes observations one after the other, starting at the beginning of the file and continuing in sequence to the end of the file. |
random access | processes observations according to the value of some indicator variable without processing previous observations. |
BY-group access | groups and processes observations in order of the values of the variables specified in a BY statement. |
multiple-pass | performs two or more passes on data when required by SAS statements or procedures. |
If a SAS statement or procedure tries to access a SAS data set whose engine does not support the required access pattern, SAS prints an appropriate error message in the SAS log.
Levels of Locking |
The levels supported are record level and member (data set) level. Member-level locking allows read access to many sessions, statements, or procedures, but restricts all other access to the SAS data set when a session, statement, or procedure acquires update access. Record-level locking allows concurrent read access and update access to the SAS data set by more than one session, statement, or procedure, but prevents concurrent update access to the same observation. Not all engines support both levels.
By default, SAS provides the greatest possible level of concurrent access possible, while guaranteeing the integrity of the data. In some cases, you might want to guarantee the integrity of your data by controlling the levels of update access yourself. Use the CNTLLEV= data set option to control levels of locking. CNTLLEV= allows locking at three levels:
Here are some situations in which you should consider using CNTLLEV=:
Note: SAS software products, such as SAS/ACCESS and SAS/SHARE, contain
engines that support enhanced session management services and file locking
capabilities.
Asynchronous I/O or Task Switching |
Indexing |
One major processing feature of the SAS data model is the ability to access observations by the values of key variables with indexes. See SAS Indexes for more information on using indexes in SAS data sets. Not all engines support indexing.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.