SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 68635: The DS2 procedure generates an access violation when a quoted identifier exceeds the maximum length

DetailsHotfixAboutRate It

Any quoted identifier that exceeds the maximum allowed length for a quoted identifier (256 characters) could lead to an "access violation" message in the SAS® log. A common user error that can result in a quoted identifier that exceeds 256 characters is incorrectly using double quotation marks instead of single quotation marks around a constant string value. The following error messages then appear:

ERROR: TKTSExecDirect failed (source line 5714).
ERROR: Access violation

The problem can be replicated by declaring a quoted variable that exceeds 256 characters. Here is an example of code that can cause this issue:

proc ds2;
  data testdata / overwrite=yes;
  dcl double 
 "a123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123
  45678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678
  9012345678901234567890123456789012345678901234567890";
 enddata;
 run;
 quit;

Click the Hot Fix tab in this note to access the hot fix for this issue for the SAS® 9.4M7 (TS1M7) release.

Click the Hot Fix tab in this note for a link to instructions about accessing and applying the software update for SAS® Viya® 3.5.

The fixed release for this issue is SAS® Viya® 2021.2.2.

After you apply the hot fix, the invalid identifier is detected, and compilation is halted. The SAS log example below demonstrates this change:

 1           proc ds2;
 2          data testdata / overwrite=yes;
 3          dcl double
 4           ! "a12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
 4           ! 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
 4           ! 123456789012345678901234567890123456789012345678901234567890";
NOTE: The quoted string currently being processed has become more than 262 characters long.  You might have unbalanced quotation marks.
 5            enddata;
 6            run;
 6            !      quit;
ERROR: Compilation error.
ERROR: Line 4: Identifier truncated at or near
 "a123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123
  45678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678
  9012345678901234567890123456789012345678901234567890".
NOTE: PROC DS2 has set option NOEXEC and will continue to prepare statements.


Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemBase SASz/OS9.4_M79.4 TS1M7
z/OS 64-bit9.4_M79.4 TS1M7
Microsoft® Windows® for x649.4_M79.4 TS1M7
Microsoft Windows 8 Enterprise 32-bit9.4_M79.4 TS1M7
Microsoft Windows 8 Enterprise x649.4_M79.4 TS1M7
Microsoft Windows 8 Pro 32-bit9.4_M79.4 TS1M7
Microsoft Windows 8 Pro x649.4_M79.4 TS1M7
Microsoft Windows 8.1 Enterprise 32-bit9.4_M79.4 TS1M7
Microsoft Windows 8.1 Enterprise x649.4_M79.4 TS1M7
Microsoft Windows 8.1 Pro 32-bit9.4_M79.4 TS1M7
Microsoft Windows 8.1 Pro x649.4_M79.4 TS1M7
Microsoft Windows 109.4_M79.4 TS1M7
Microsoft Windows Server 20089.4_M79.4 TS1M7
Microsoft Windows Server 2008 R29.4_M79.4 TS1M7
Microsoft Windows Server 2008 for x649.4_M79.4 TS1M7
Microsoft Windows Server 2012 Datacenter9.4_M79.4 TS1M7
Microsoft Windows Server 2012 R2 Datacenter9.4_M79.4 TS1M7
Microsoft Windows Server 2012 R2 Std9.4_M79.4 TS1M7
Microsoft Windows Server 2012 Std9.4_M79.4 TS1M7
Microsoft Windows Server 20169.4_M79.4 TS1M7
Microsoft Windows Server 20199.4_M79.4 TS1M7
Windows 7 Enterprise 32 bit9.4_M79.4 TS1M7
Windows 7 Enterprise x649.4_M79.4 TS1M7
Windows 7 Home Premium 32 bit9.4_M79.4 TS1M7
Windows 7 Home Premium x649.4_M79.4 TS1M7
Windows 7 Professional 32 bit9.4_M79.4 TS1M7
Windows 7 Professional x649.4_M79.4 TS1M7
Windows 7 Ultimate 32 bit9.4_M79.4 TS1M7
Windows 7 Ultimate x649.4_M79.4 TS1M7
64-bit Enabled AIX9.4_M79.4 TS1M7
64-bit Enabled Solaris9.4_M79.4 TS1M7
HP-UX IPF9.4_M79.4 TS1M7
Linux for x649.4_M79.4 TS1M7
Solaris for x649.4_M79.4 TS1M7
SAS SystemSAS ViyaMicrosoft® Windows® for x643.52021.2.1ViyaViya
Microsoft Windows 8 Enterprise 32-bit3.5Viya
Microsoft Windows 8 Enterprise x643.52021.2.1ViyaViya
Microsoft Windows 8 Pro 32-bit3.5Viya
Microsoft Windows 8 Pro x643.52021.2.1ViyaViya
Microsoft Windows 8.1 Enterprise 32-bit3.5Viya
Microsoft Windows 8.1 Enterprise x643.52021.2.1ViyaViya
Microsoft Windows 8.1 Pro 32-bit3.5Viya
Microsoft Windows 8.1 Pro x643.52021.2.1ViyaViya
Microsoft Windows 103.52021.2.1ViyaViya
Microsoft Windows 113.5Viya
Microsoft Windows 95/983.5Viya
Microsoft Windows 2000 Advanced Server3.5Viya
Microsoft Windows 2000 Datacenter Server3.5Viya
Microsoft Windows 2000 Server3.5Viya
Microsoft Windows 2000 Professional3.5Viya
Microsoft Windows NT Workstation3.5Viya
Microsoft Windows Server 2003 Datacenter Edition3.5Viya
Microsoft Windows Server 2003 Enterprise Edition3.5Viya
Microsoft Windows Server 2003 Standard Edition3.5Viya
Microsoft Windows Server 2003 for x643.52021.2.1ViyaViya
Microsoft Windows Server 20083.5Viya
Microsoft Windows Server 2008 R23.52021.2.1ViyaViya
Microsoft Windows Server 2008 for x643.52021.2.1ViyaViya
Microsoft Windows Server 2012 Datacenter3.52021.2.1ViyaViya
Microsoft Windows Server 2012 R2 Datacenter3.52021.2.1ViyaViya
Microsoft Windows Server 2012 R2 Std3.52021.2.1ViyaViya
Microsoft Windows Server 2012 Std3.52021.2.1ViyaViya
Microsoft Windows Server 20163.52021.2.1ViyaViya
Microsoft Windows Server 20193.52021.2.1ViyaViya
Microsoft Windows Server 20223.5Viya
Microsoft Windows XP Professional3.5Viya
Windows 7 Enterprise 32 bit3.5Viya
Windows 7 Enterprise x643.52021.2.1ViyaViya
Windows 7 Home Premium 32 bit3.5Viya
Windows 7 Home Premium x643.52021.2.1ViyaViya
Windows 7 Professional 32 bit3.5Viya
Windows 7 Professional x643.52021.2.1ViyaViya
Windows 7 Ultimate 32 bit3.5Viya
Windows 7 Ultimate x643.52021.2.1ViyaViya
Windows Millennium Edition (Me)3.5Viya
Windows Vista3.5Viya
Windows Vista for x643.52021.2.1ViyaViya
Linux for x643.52021.2.1ViyaViya
* 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.