Problem Note 5667: No errors issued when using PROC DBLOAD to insert/append rows with the
same primary key
If you attempt to insert/append to a Sybase table using PROC DBLOAD with
existing rows in the table that have the same primary key as those being
inserted, those rows are not inserted and no error messages are issued.
The log indicates everything was inserted, but many (or all) rows were
rejected.
This problem occurs only during a bulk copy operation from within either
DBLOAD or LIBNAME output append processing. On errors of primary key or
unique index violation, these errors were not being surfaced. This is a
SAS bug and has been fixed with SAS Version 8.2.
Below is some sample code that will replicate the problem:
proc sql;
connect to sybase (user='user' password='password');
execute (create table foobar (col1 x tinyint primary key)
by sybase;
execute (insert into foobar values (1)) by sybase;
quit;
data one; x=1; run;
data two; x=999999999999; run;
proc dbload dbms=sybase data=one append;
user='austin'; password='austin';
table = 'foobar1';
bulk=yes;
load;
run;
proc dbload dbms=sybase data=two append;
user='austin' ; password='austin';
table = 'foobar2';
bulk=yes;
load;
run;
Operating System and Release Information
| Product Family | Product | System | Reported Release | Fixed Release* |
| SAS System | SAS/ACCESS Interface to Sybase | Microsoft Windows 95/98 | 8 TS M0 | 8.2 TS2M0 |
| Microsoft Windows NT Workstation | 8 TS M0 | 8.2 TS2M0 |
| Microsoft Windows 2000 Server | 8 TS M0 | 8.2 TS2M0 |
| Microsoft Windows 2000 Advanced Server | 8 TS M0 | 8.2 TS2M0 |
| Microsoft Windows 2000 Datacenter Server | 8 TS M0 | 8.2 TS2M0 |
| Microsoft Windows 2000 Professional | 8 TS M0 | 8.2 TS2M0 |
| IRIX | 8 TS M0 | 8.2 TS2M0 |
| Solaris | 8 TS M0 | 8.2 TS2M0 |
| 64-bit Enabled Solaris | 8 TS M0 | 8.2 TS2M0 |
| OpenVMS Alpha | 8 TS M0 | 8.2 TS2M0 |
| HP-UX | 8 TS M0 | 8.2 TS2M0 |
| 64-bit Enabled HP-UX | 8 TS M0 | 8.2 TS2M0 |
| 64-bit Enabled AIX | 8 TS M0 | 8.2 TS2M0 |
| Tru64 UNIX | 8 TS M0 | 8.2 TS2M0 |
| AIX | 8 TS M0 | 8.2 TS2M0 |
*
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.
| Type: | Problem Note |
| Priority: | high |
| Topic: | Data Management ==> Data Sources ==> External Databases ==> Sybase SAS Reference ==> LIBNAME Engines
|
| Date Modified: | 2001-08-20 11:21:47 |
| Date Created: | 2001-08-20 11:21:47 |