Your ability to access
a specific SAS file in a library depends on the engine that is associated
with that library. You can explicitly specify the engine in the LIBNAME
statement, or you can allow SAS to select the appropriate engine according
to the version of SAS being used and the format of the SAS files in
the directory. If the library is homogenous (for example, all data
files are SAS 9 files), the V9 engine is used, by default.
Note: The V9 and V8 engines provide
identical functionality.
However, if a physical
library contains a mixture of SAS 6 files and SAS 8 files, a SAS session
that runs a newer release of SAS can use the V6 engine to access only
the SAS 6 files in that library.
CAUTION:
A SAS 9
session cannot access SAS 6 files in a mixed library.
If a library contains
newer and older SAS files and the V9 or V8 engine is specified, only
the SAS 9 or SAS 8 files can be accessed. The SAS 6 files are not
recognized in the SAS 9 or SAS 8 session.
However, if the V6 engine
is specified, the SAS 6 files can be accessed. The SAS 9 or SAS 8
files are not recognized.
In the following example,
the libref V8LIB accesses only SAS 9 or SAS 8 files.
libname v8lib v8 'SAS-library';
In the following example,
the libref V9LIB accesses only SAS 9 or SAS 8 files.
libname v9lib v9 'SAS-library';
In the following example,
the libref V6LIB accesses only SAS 6 files.
libname v6lib v6 'SAS-library';