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-white.png

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

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