Using SAS Engines |
Introduction to Selecting an Engine |
Generally, SAS automatically determines the appropriate engine to use for accessing the files in the library. If you want to create a new library with an engine other than the default engine, you can override the automatic selection.
The LIBNAME Statement or LIBASSIGN Command |
To change the current engine, you can complete either of the following tasks:
specify the SAS engine as the value of the engine argument in the LIBNAME statement or LIBNAME function. Valid values include V9, V8, V7, and V6.
Note: Use BASE as the engine name if you write programs that create new SAS libraries and you want to create the libraries in the latest available format. BASE is an alias for the V9 engine, and it will be an alias for newer engines in subsequent releases.
specify a TAPE engine in the Engine field of the New Library dialog box. You can open the New Library dialog box by issuing the LIBASSIGN command in the command window. Values include V9TAPE, V8TAPE, and V7TAPE.
Note: Use TAPE as the engine name if you write programs that create new SAS libraries and you want to create the libraries in the latest available format. TAPE is an alias for the V9TAPE engine, and it will be an alias for newer sequential engines in the subsequent releases.
SAS Selects the Engine for an Existing Library |
For an existing SAS library on disk that contains only SAS 9.2 data sets, do not specify a value for engine in the LIBNAME statement or LIBNAME function, or select Default as the type in the Engine field of the New Library dialog box. SAS automatically selects the V9 engine. SAS also selects the V9 engine automatically if you use the DCL DEFINE command to assign an OpenVMS logical name to an existing SAS 9.2 library on disk and then use that logical name as a libref in a SAS file specification.
The ENGINE= System Option |
Set the value of the ENGINE= system option to the value of the engine that you want to use. This option tells SAS which engine to use as the default when no engine is specified and there are no existing data sets, or when the directory is in mixed mode.
For more information, see ENGINE= System Option: OpenVMS.
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.