BookmarkSubscribeRSS Feed
tiramisu
Calcite | Level 5

My goal is to create a table in library abc using data within a remote server (i.e. my organization's data warehouse):

libname abc 'C:/Users/xxx/Desktop/SAS';

 

The above runs successfully, and then I am able to see and access library abc on the explorer window on the left side.

 

Then, I submit the following:

proc sql;
connect to db2(database = aaa user=&user. password=&pw.);

create table abc.srv_table_1 as
select *
from srv.table_1
;
quit;

 

The creation fails and outputs the following in the log:

ERROR: Library abc does not exist

What am I missing here?

1 REPLY 1

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 650 views
  • 0 likes
  • 2 in conversation