Problem Note 11547: Locking modifiers are not handled correctly when DBKEY= is used
When the libname options READ_LOCK_TYPE=, READ_ISOLATION_LEVEL=,
CONNECTION=, and READ_MODE_WAIT= are present along with the data set
option DBKEY=, incorrect syntax for the lock statement is passed to
Teradata.
The SQL that should be generated should look like the following (exact
syntax will depend on the values of the above options):
USING ("deptno" INTEGER) LOCK TABLE "dept" FOR ACCESS MODE NOWAIT
SELECT "DEPTNO","DNAME","LOC"
FROM "dept"
WHERE "deptno"=:"deptno"
What gets passed instead is one of the following:
LOCK TABLE "dept" FOR ACCESS MODE NOWAIT USING ("deptno" INTEGER)
SELECT "DEPTNO","DNAME","LOC"
FROM "dept"
WHERE "deptno"=:"deptno"
or
LOCK TABLE "dept" FOR ACCESS USING ("deptno" INTEGER)
SELECT "DEPTNO","DNAME","LOC"
FROM "dept"
WHERE "deptno"=:"deptno"
This results in an error. One of several different errors can be
received depending on the exact statement sent above. Below are
just a sample of a few:
ERROR: Teradata row not delivered (trget): Syntax error, replace
'USING' that follows 'NOWAIT' with a 'ROLLBACK' keyword.
or
ERROR: Teradata row not delivered (trget): Syntax error: expected
something between the word 'ACCESS' and the 'USING' keyword.
or
ERROR: Teradata row not delivered (trget): Syntax error, replace
'FOR' that follows the word 'dept' with a 'SELECT' keyword.
A Technical Support hot fix for Release 8.2 (TS2M0) for this
issue is available at:
http://www.sas.com/techsup/download/hotfix/82_sbcs_prod_list.html#011547
Operating System and Release Information
| Product Family | Product | System | Reported Release | Fixed Release* |
| SAS System | SAS/ACCESS Interface to Teradata | Microsoft Windows XP Professional | 8.2 TS2M0 | |
| Microsoft Windows NT Workstation | 8.2 TS2M0 | |
| Windows Millennium Edition (Me) | 8.2 TS2M0 | |
| Microsoft Windows 95/98 | 8.2 TS2M0 | |
| Microsoft Windows Server 2003 Datacenter Edition | 8.2 TS2M0 | |
| Microsoft Windows Server 2003 Enterprise Edition | 8.2 TS2M0 | |
| Microsoft Windows Server 2003 Standard Edition | 8.2 TS2M0 | |
| Microsoft Windows 2000 Professional | 8.2 TS2M0 | |
| Microsoft Windows 2000 Server | 8.2 TS2M0 | |
| Microsoft Windows 2000 Datacenter Server | 8.2 TS2M0 | |
| Microsoft Windows 2000 Advanced Server | 8.2 TS2M0 | |
| HP-UX | 8.2 TS2M0 | |
| ABI+ for Intel Architecture | 8.2 TS2M0 | |
| z/OS | 8.2 TS2M0 | |
| Solaris | 8.2 TS2M0 | |
| 64-bit Enabled Solaris | 8.2 TS2M0 | |
| 64-bit Enabled HP-UX | 8.2 TS2M0 | |
| 64-bit Enabled AIX | 8.2 TS2M0 | |
| AIX | 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: | SAS Reference ==> LIBNAME Engines Data Management ==> Data Sources ==> External Databases ==> Teradata
|
| Date Modified: | 2004-01-15 11:58:38 |
| Date Created: | 2004-01-07 12:31:50 |