Usage Note 35003: An error might occur if you use the ODBC engine in a LIBNAME statement and you run a DATA step to write a SAS data set to the Netezza database
The following error might occur if you use the ODBC engine in a LIBNAME statement and you submit a DATA step to write a SAS data set to the Netezza
database:
libname tstntz odbc dsn=nzsql user=production
password=password;
data tstntz.new_table;
set mydata.test;
run;
ERROR: Error attempting to CREATE a DBMS table. ERROR: CLI execute
error: ERROR: 'CREATE TABLE NEW_TABLE (rcrd_type
varchar(11),indv_id numeric(16,0),pre_seg varchar(1),segment
varchar(25),ran_num double(13))' error
When you create a Netezza table, you cannot specify the length for a double data type. Instead, you should specify either DOUBLE or FLOAT(13), as shown in the following example.
As a workaround, create the Netezza table using the SQL procedure's Pass-Through facility and then write the SAS data set to that empty table, as illustrated in this example:
libname foo odbc dsn=netezza-data-set-name netza user=user-name
pwd=netezza-password;
proc sql;
connect to odbc(dsn=netezza-data-set-name user=user-name
pwd=netezza-password);
execute(create table classtest (Name varchar(8), sex varchar(1),
Age double, height double, weight double)) by odbc;
quit;
proc sql;
insert into foo.classtest select * from sashelp.class;
quit;
Operating System and Release Information
SAS System | SAS/ACCESS Interface to ODBC | Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M3 SP4 | |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.1 TS1M3 SP4 | |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.1 TS1M3 SP4 | |
Microsoft Windows XP 64-bit Edition | 9.1 TS1M3 SP4 | |
Microsoft® Windows® for x64 | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Advanced Server | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Datacenter Server | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Server | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Professional | 9.1 TS1M3 SP4 | |
Microsoft Windows NT Workstation | 9.1 TS1M3 SP4 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 SP4 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 SP4 | |
Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 SP4 | |
Microsoft Windows XP Professional | 9.1 TS1M3 SP4 | |
Windows Vista | 9.1 TS1M3 SP4 | |
64-bit Enabled AIX | 9.1 TS1M3 SP4 | |
64-bit Enabled HP-UX | 9.1 TS1M3 SP4 | |
64-bit Enabled Solaris | 9.1 TS1M3 SP4 | |
HP-UX IPF | 9.1 TS1M3 SP4 | |
Linux | 9.1 TS1M3 SP4 | |
Linux on Itanium | 9.1 TS1M3 SP4 | |
Solaris for x64 | 9.1 TS1M3 SP4 | |
Tru64 UNIX | 9.1 TS1M3 SP4 | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Date Modified: | 2009-05-05 15:48:39 |
Date Created: | 2009-03-02 15:05:59 |