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

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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
  • 579 views
  • 0 likes
  • 2 in conversation