SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 20977: SAS/ACCESS® Interface to DB2 cannot obtain the last inserted identity value unless you issue a separate SELECT statement after the INSERT statement

DetailsHotfixAboutRate It

SAS/ACCESS Interface to DB2 cannot obtain the last inserted identity value unless you submit a separate SELECT statement after the INSERT statement.

Select the Hot Fix tab in this note to access the hot fix for this issue.

This hot fix includes the new FETCH_IDENTITY= data set option for the LIBNAME statement. This option accepts a value of either YES or NO value. The default value is NO.

If you set the option to YES and the INSERT statement is executed such that it inserts a single row, the DB2 engine places the results into the macro variable SYSDB2_LAST_IDENTITY.

Note: The default behavior for the DB2 engine is to insert multiple rows. To use FETCH_IDENTITY=YES, you must force the use of single-row insertion by setting the option INSERTBUFF=1.



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemSAS/ACCESS Interface to DB2Microsoft Windows XP Professional9.1 TS1M39.2 TS1M0
Microsoft Windows XP 64-bit Edition9.1 TS1M39.2 TS1M0
Microsoft Windows NT Workstation9.1 TS1M3
Microsoft® Windows® for 64-Bit Itanium-based Systems9.1 TS1M39.2 TS1M0
Microsoft Windows Server 2003 Standard Edition9.1 TS1M39.2 TS1M0
Microsoft Windows Server 2003 Datacenter Edition9.1 TS1M39.2 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9.1 TS1M39.2 TS1M0
Microsoft Windows 2000 Server9.1 TS1M39.2 TS1M0
Microsoft Windows 2000 Professional9.1 TS1M39.2 TS1M0
Microsoft Windows 2000 Datacenter Server9.1 TS1M39.2 TS1M0
Microsoft Windows 2000 Advanced Server9.1 TS1M39.2 TS1M0
64-bit Enabled Solaris9.1 TS1M39.2 TS1M0
Linux9.1 TS1M39.2 TS1M0
64-bit Enabled HP-UX9.1 TS1M39.2 TS1M0
64-bit Enabled AIX9.1 TS1M39.2 TS1M0
* 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.