SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 52776: A Read access violation occurs when you run a query against an SAP table in a SAS® double-byte character set (DBCS) encoding

DetailsHotfixAboutRate It

When you use the COUNT function in an SQL query against an SAP table via the metadata LIBNAME engine, the query fails with a Read access violation that is similar to the following:.

ERROR:  An exception has been encountered.
Please contact technical support and provide them with the following 
traceback information:

The SAS task name is [SQL]
ERROR:  Read Access Violation SQL
Exception occurred at (04AB5FD3)
Task Traceback
Address   Frame     (DBGHELP API Version 4.0 rev 5)
0000000004AB5FD3  000000000CD8D2F0  saswzsd:tkvercn1+0x14F93
0000000004AAB96D  000000000CD8D770  saswzsd:tkvercn1+0xA92D
000000000CE3AAD0  000000000CD8D778  sassqlu:tkvercn1+0x39A90
000000000CE29367  000000000CD8D9C0  sassqlu:tkvercn1+0x28327
000000000CE278D1  000000000CD8E090  sassqlu:tkvercn1+0x26891
000000000CE26770  000000000CD8E160  sassqlu:tkvercn1+0x25730
000000000CE2F5B6  000000000CD8E3F0  sassqlu:tkvercn1+0x2E576
000000000CE15632  000000000CD8E5B0  sassqlu:tkvercn1+0x145F2
000000000CE1D2AC  000000000CD8E850  sassqlu:tkvercn1+0x1C26C
000000000CE2144A  000000000CD8E960  sassqlu:tkvercn1+0x2040A
000000000CE0B895  000000000CD8ECB0  sassqlu:tkvercn1+0xA855
000000000C6DE35D  000000000CD8ECB8  sassqlp:tkvercn1+0x3D31D
000000000C6DCD8A  000000000CD8F630  sassqlp:tkvercn1+0x3BD4A
000000000C6CE4C2  000000000CD8F820  sassqlp:tkvercn1+0x2D482
000000000C6FA84D  000000000CD8F920  sassqlp:tkvercn1+0x5980D
000000000C5D03A1  000000000CD8F928  sassqx:tkvercn1+0x2F361
000000000B5B132A  000000000CD8FC28  sassql:tkvercn1+0x2EA
0000000003408FD7  000000000CD8FCB8  sashost:Main+0xF917
000000000340D5FD  000000000CD8FF50  sashost:Main+0x13F3D
0000000077ACF56D  000000000CD8FF58  kernel32:BaseThreadInitThunk+0xD
0000000077C03281  000000000CD8FF88  ntdll:RtlUserThreadStart+0x21

The following example code causes the Read access violation:

libname x meta library="SAP-library"; proc sql; select(count(t1.mandt)) as calculation from x. t1; quit;

To work around this problem, use the SAP engine to access the table.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemBase SASz/OS9.3_M19.3 TS1M1
Z649.3_M19.3 TS1M1
Microsoft® Windows® for x649.3_M19.3 TS1M1
Microsoft Windows Server 2003 Datacenter Edition9.3_M19.3 TS1M1
Microsoft Windows Server 2003 Enterprise Edition9.3_M19.3 TS1M1
Microsoft Windows Server 2003 Standard Edition9.3_M19.3 TS1M1
Microsoft Windows Server 2003 for x649.3_M19.3 TS1M1
Microsoft Windows Server 20089.3_M19.3 TS1M1
Microsoft Windows Server 2008 R29.3_M19.3 TS1M1
Microsoft Windows Server 2008 for x649.3_M19.3 TS1M1
Microsoft Windows XP Professional9.3_M19.3 TS1M1
Windows 7 Enterprise 32 bit9.3_M19.3 TS1M1
Windows 7 Enterprise x649.3_M19.3 TS1M1
Windows 7 Home Premium 32 bit9.3_M19.3 TS1M1
Windows 7 Home Premium x649.3_M19.3 TS1M1
Windows 7 Professional 32 bit9.3_M19.3 TS1M1
Windows 7 Professional x649.3_M19.3 TS1M1
Windows 7 Ultimate 32 bit9.3_M19.3 TS1M1
Windows 7 Ultimate x649.3_M19.3 TS1M1
Windows Vista9.3_M19.3 TS1M1
Windows Vista for x649.3_M19.3 TS1M1
64-bit Enabled AIX9.3_M19.3 TS1M1
64-bit Enabled HP-UX9.3_M19.3 TS1M1
64-bit Enabled Solaris9.3_M19.3 TS1M1
HP-UX IPF9.3_M19.3 TS1M1
Linux9.3_M19.3 TS1M1
Linux for x649.3_M19.3 TS1M1
Solaris for x649.3_M19.3 TS1M1
* 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.