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!

 

 


 

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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