CONNECT TO dbms-name<AS alias>(dbms-args);
sasspds to
obtain SQL pass-through to an SPD Server SQL server. You must specify spdseng to
obtain SQL pass-through from an SPD Server SQL server.
spdseng is
the database that you use to reference an SPD Server from within an
existing SPD Server SQL connection.
execute(...) by alias
select * from connection to alias(...)
/etc/services file.
DISCONNECT FROM [dbms-name | alias];
EXECUTE (SQL-statement) BY [dbms-name | alias];
CONNECTION TO [dbms-name | alias](SQL-query);
1,
EMPLOYEE_NAME equals The Prez, and ANNUAL_SALARY
equals 10,000.
PROC SQL;
connect to sasspds
(dbq='mydomain'
host='workstation1'
serv='spdsname'
user='me'
passwd='noway');
execute (create table employee_info
(employee_no num, employee_name char(30),
annual_salary num)) by sasspds;
execute (insert into employee_info
values (1, 'The Prez', 10000)) by sasspds;
select * from connection to sasspds
(select * from employee_info);
disconnect from sasspds;
quit;
spdseng database
to reserve an SPD Server from within an existing SPD Server SQL connection.
proc sql;
connect to sasspds (dbq='domain1'
host='datagate' serv='spdsname'
user='usr1' passwd='usr1_pw');
execute (connect to spdseng (dbq='domain2'
host='prod' serv='spdsname'
user='usr2' passwd='usr2_pw')) by sasspds;
select * from connection to sasspds(
select * from connection to spdseng(
select employee_no, annual_salary
from employee_info));
execute (disconnect from spdseng) by sasspds;
disconnect from sasspds;
quit;
spdseng database to
reference a server, you can use the LIBGEN=YES option. Libraries with
the LIBGEN=YES option are automatically available in SQL environments.
For more information about the LIBGEN=YES option, see
LIBGEN=