Problem Note 51138: A Read-access violation might occur when you perform a correlated subquery using the SQL procedure
Referring to a table that has been sorted and indexed in a correlated subquery might cause a Read-access violation when you run PROC SQL.
To temporarily work around this issue, do not presort the table to be indexed. This workaround causes the query to run longer than expected but should allow the query to execute.
To see sample code that reproduces this problem, click the Full Code tab in this note.
Click the Hot Fix tab in this note to access the hot fix for this issue.
Operating System and Release Information
SAS System | Base SAS | z/OS | 9.3_M2 | | 9.3 TS1M2 | |
Z64 | 9.3_M2 | | 9.3 TS1M2 | |
Microsoft® Windows® for x64 | 9.3_M2 | | 9.3 TS1M2 | |
Microsoft Windows 8 Enterprise 32-bit | 9.3_M2 | | 9.3 TS1M2 | |
Microsoft Windows 8 Enterprise x64 | 9.3_M2 | | 9.3 TS1M2 | |
Microsoft Windows 8 Pro 32-bit | 9.3_M2 | | 9.3 TS1M2 | |
Microsoft Windows 8 Pro x64 | 9.3_M2 | | 9.3 TS1M2 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.3_M2 | | 9.3 TS1M2 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.3_M2 | | 9.3 TS1M2 | |
Microsoft Windows Server 2003 Standard Edition | 9.3_M2 | | 9.3 TS1M2 | |
Microsoft Windows Server 2003 for x64 | 9.3_M2 | | 9.3 TS1M2 | |
Microsoft Windows Server 2008 | 9.3_M2 | | 9.3 TS1M2 | |
Microsoft Windows Server 2008 R2 | 9.3_M2 | | 9.3 TS1M2 | |
Microsoft Windows Server 2008 for x64 | 9.3_M2 | | 9.3 TS1M2 | |
Microsoft Windows Server 2012 Datacenter | 9.3_M2 | | 9.3 TS1M2 | |
Microsoft Windows Server 2012 Std | 9.3_M2 | | 9.3 TS1M2 | |
Microsoft Windows XP Professional | 9.3_M2 | | 9.3 TS1M2 | |
Windows 7 Enterprise 32 bit | 9.3_M2 | | 9.3 TS1M2 | |
Windows 7 Enterprise x64 | 9.3_M2 | | 9.3 TS1M2 | |
Windows 7 Home Premium 32 bit | 9.3_M2 | | 9.3 TS1M2 | |
Windows 7 Home Premium x64 | 9.3_M2 | | 9.3 TS1M2 | |
Windows 7 Professional 32 bit | 9.3_M2 | | 9.3 TS1M2 | |
Windows 7 Professional x64 | 9.3_M2 | | 9.3 TS1M2 | |
Windows 7 Ultimate 32 bit | 9.3_M2 | | 9.3 TS1M2 | |
Windows 7 Ultimate x64 | 9.3_M2 | | 9.3 TS1M2 | |
Windows Vista | 9.3_M2 | | 9.3 TS1M2 | |
Windows Vista for x64 | 9.3_M2 | | 9.3 TS1M2 | |
64-bit Enabled AIX | 9.3_M2 | | 9.3 TS1M2 | |
64-bit Enabled HP-UX | 9.3_M2 | | 9.3 TS1M2 | |
64-bit Enabled Solaris | 9.3_M2 | | 9.3 TS1M2 | |
HP-UX IPF | 9.3_M2 | | 9.3 TS1M2 | |
Linux | 9.3_M2 | | 9.3 TS1M2 | |
Linux for x64 | 9.3_M2 | | 9.3 TS1M2 | |
Solaris for x64 | 9.3_M2 | | 9.3 TS1M2 | |
*
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.
This code reproduces the Read-access violation documented in this SAS Note.
data one;
format a b c d 8.;
input a b c d ;
datalines;
1 25193 1 2
1 25193 1 3
1 25193 2 1
;
RUN;
proc sort data=one;
by a b ;
run;
proc sql;
create index a on one;
quit;
proc sql;
create table one1 as
select * from one as a
where c = (SELECT c FROM one as b
WHERE a.a=b.a
AND b.d = 1
)
;
QUIT;
Type: | Problem Note |
Priority: | high |
Date Modified: | 2013-10-28 16:52:46 |
Date Created: | 2013-09-24 09:37:39 |