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!
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!
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!
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.