To connect to a
data source with SAS Federation Server, you must first connect to SAS Federation Server. A
server connection is established by specifying server connection LIBNAME options in the
LIBNAME statement.
SAS Federation Server can be running on the local computer or on a remote computer.
The SAS program connects as a client of SAS Federation Server. The data source connection
options identify the computer on which the server is running, the port number that
is used to access the server, and user
authentication credentials.
Here is an example of the code that is necessary to connect to SAS Federation Server
and access a
SAS data set.
libname lib1 fedsvr server="d1234.us.company.com"
port=2171 user="myid" password=mypwd
dsn="BaseDSN";
proc print data=lib3.table1;
run;
In the example, FEDSVR is the name of the LIBNAME engine and SERVER=, PORT=, USER=,
and PASSWORD= are server connection LIBNAME options.
SERVER="d1234.us.company.com"
identifies the computer
on which SAS Federation Server is running.
PORT=2171
specifies the TCP port
that SAS Federation Server is listening to for connections. 2171 is
the default port number defined for SAS Federation Server at installation.
USER="myid"
specifies the user ID for logging on to the server. Alias: UID=.
PASSWORD=mypwd
specifies the password that corresponds to the user ID for the server. Alias: PWD=.