BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
jim_toby
Quartz | Level 8

I am trying to load a SAS table into Netezza through the odbc libname. Here is how I do this:

 

libname sdf odbc noprompt="server=xxxx; DRIVER=xxxxx; port=5480; database=xxxx; username=xxxxx; password=xxxxxx;";
proc sql;
create table netair.practice
(bulkload = YES)
AS SELECT * FROM SASTable WHERE ADDRESS LIKE '2%';
disconnect from odbc;
quit;

When I run this I get the error: Error: File WORK.SASTable.DATA does not exist.

 

How do I solve this issue? I am using SAS Enterprise Guide version 7.12

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

You treat it as a SAS data set, not pass through anymore.

See if the following works, if not, post your full log. This assumes you have write access to the server and the libname statement works correctly to connect you to your DB.

 

libname sdf odbc noprompt="server=xxxx; DRIVER=xxxxx; port=5480; database=xxxx; username=xxxxx; password=xxxxxx;";


proc sql;
create table sdf.practice AS
SELECT * FROM sashelp.class;
quit;

@jim_toby wrote:

I am trying to load a SAS table into Netezza through the odbc libname. Here is how I do this:

 

libname sdf odbc noprompt="server=xxxx; DRIVER=xxxxx; port=5480; database=xxxx; username=xxxxx; password=xxxxxx;";
proc sql;
create table netair.practice
(bulkload = YES)
AS SELECT * FROM SASTable WHERE ADDRESS LIKE '2%';
disconnect from odbc;
quit;

When I run this I get the error: Error: File WORK.SASTable.DATA does not exist.

 

How do I solve this issue? I am using SAS Enterprise Guide version 7.12

Thanks!

 

 


 

View solution in original post

1 REPLY 1
Reeza
Super User

You treat it as a SAS data set, not pass through anymore.

See if the following works, if not, post your full log. This assumes you have write access to the server and the libname statement works correctly to connect you to your DB.

 

libname sdf odbc noprompt="server=xxxx; DRIVER=xxxxx; port=5480; database=xxxx; username=xxxxx; password=xxxxxx;";


proc sql;
create table sdf.practice AS
SELECT * FROM sashelp.class;
quit;

@jim_toby wrote:

I am trying to load a SAS table into Netezza through the odbc libname. Here is how I do this:

 

libname sdf odbc noprompt="server=xxxx; DRIVER=xxxxx; port=5480; database=xxxx; username=xxxxx; password=xxxxxx;";
proc sql;
create table netair.practice
(bulkload = YES)
AS SELECT * FROM SASTable WHERE ADDRESS LIKE '2%';
disconnect from odbc;
quit;

When I run this I get the error: Error: File WORK.SASTable.DATA does not exist.

 

How do I solve this issue? I am using SAS Enterprise Guide version 7.12

Thanks!

 

 


 

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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