So I have 2 servers: server 1 and server 2 (both in SAS).
I have table 1in server 1 that I need to left join with table 2 in server 2. I am unsure how to d othis.
Right now I have a program that has server 1 as a selected server. I can access table 1 of course, but I have no idea how to access table 2 in server 2. Any ideas? This is in sas enterprise guide.
I tried " libname lib2 path server = server2; but I get an "Invaluid value for the SERVER option" error. as well as Libref server2 is not assigned and error in the libname statement errors.
Tell us more about your setup. Are those servers on different hosts? Where are the libraries located (local disks, SAN, network shares)?
Do you have SAS/CONNECT licensed?
is there an easy way to find that out on SAS? I'm doing this as part of work and my manager and coworkers and unfamiliar with SAS
Right-click on the servers in the serverlist, select Properties.
And someone has to have that information anyway, because SAS does not install itself out of the blue.
It's not local drive for sure... it's a share network most likely because everyone in the company has access to these files... im not sure if I have SAS/CONNECT... how do I check?
Submit
proc setinit;
run;
to get a listing of your license in the log.
ok I have sas/connect... how do I join the tables in different servers now? Thanks again!
What OSs do your SAS servers run on? If they are both Windows then a LIBNAME statement pointing to a file share (\\ServerName\FolderName) between the servers is easier than using SAS/CONNECT. You might need to get IT Admin to set these up for you though.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.