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!
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
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.