In this example the
client connects to the SPD Server SQL server using the engine
sasspds. The domain is
mydomain, the server machine is called
namesvrID, and the port number is
namesvrPortNum.
The execute statement assigns the libref cookie to another domain,
dough. After the libref is executed, the user issuing the connect
statement can now access either the default domain
mydomain or the secondary domain
dough.
PROC SQL;
connect to sasspds
(dbq='mydomain'
host='namesvrID'
serv='namesvrPortNum'
user='neraksr'
passwd='siuya');
execute(libref cookie
engopt='
dbq="dough"')
by sasspds;
In the example above,
the libref is
cookie, and the secondary domain
named is
dough. The intent of the example
is to show how the CONNECT and libref statements work in conjunction
to access multiple domains for the same user.