The client
uses RSPT to process server data in the client session and to create
the final view in the client session.
This code
creates a PROC SQL view in a SAS library in the client session, which
uses RSPT to access the remote SAS data from the server session:
Note: The libref
SERVLIB can be defined for the server SAS library either in the client
or the server session. In this example, a LIBNAME statement is executed
in the client session to access the library that is located on the
server. Alternatively, you could remotely submit a LIBNAME statement
to define the library in the server session.
libname mylib 'C:\sales';
libname servlib '/dept/sales/revenue' server=servername;
proc sql;
connect to remote
(server=servername);
create view mylib.sales08 as
select * from connection to remote
(select customer, sum(amount) as amount
from servlib.sales
where year=2008 and
salesrep='L. PETERSON'
group by customer
order by customer);