Server administrators
might prefer to define SAS libraries at server start-up time, rather
than defining them through the
SAS ODBC Driver Configuration dialog boxes. Defining libraries at server start-up time can make
opening the data source faster. It enables you to avoid hardcoding
the physical names of your libraries in your SAS ODBC data source
definitions.
The driver communicates
with a
SAS/SHARE server
(invoked by PROC SERVER) to access remote data or a SAS ODBC server
(invoked by PROC ODBCSERV) to access local data. To define a data
library at server start-up time, you precede the PROC SERVER or PROC
ODBCSERV statement with a SAS LIBNAME statement. For example, you
could define a library of cost accounting data to a
SAS/SHARE server as follows:
options VALIDVARNAME=any;
libname cost 'c:\data\costacct';
proc server id=acctserv authenticate=optional;
run;
Note: Depending on whether the
server is running in secured mode, the
authenticate=optional
option might not be needed.
To define this library
to a SAS ODBC server, you would add only the previous LIBNAME statement
to the
!SASROOT\core\sasmacro\sasodbc.sas
file.
When a user requests
access to a SAS ODBC data source from an ODBC client application,
the server automatically makes the library available, along with any
libraries that were defined on the
Libraries tab.
For more information
about the LIBNAME statement, see the SAS Companion for the operating
system under which your data library is stored.