Problem Note 32542: An error message incorrectly appears when you use the IDXNAME= and the WHERE= option data set options together in an SQL procedure
An error message incorrectly appears when you submit a PROC SQL query that contains the following data set options:
- an IDXNAME= data set option that specifies an index name
- a WHERE= data set option that is used to subset the data
The following example illustrates an instance of using both the IDXNAME= and the WHERE= options in a PROC SQL query:
options msglevel=i;
data work.temp(index=(x));
do x=1 to 10;
output;
end;
run;
data work.temp2;
set work.temp(idxname=x where(x gt 4));
run;
proc sql;
create table work.temp3 as
select * from work.temp(idxname=x where=(x gt 4));
quit;
The error message you receive is as follows:
ERROR: The IDXNAME= dataset option specified a nonexistent index.
This error does not occur when you use the same options in a DATA step. It also does not occur when you use the IDXNAME= data set option without the WHERE= data set option. The following example illustrates these two cases:
options msglevel=i;
data work.temp(index=(x));
do x=1 to 10;
output;
end;
run;
data work.temp2;
set work.temp(idxname=x where(x gt 4));
run;
proc sql;
create table work.temp3 as
select * from work.temp(idxname=x);
quit;
Select 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.1 TS1M3 SP4 | 9.2 TS1M0 |
| Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M3 SP4 | 9.2 TS1M0 |
| Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.1 TS1M3 SP4 | 9.2 TS1M0 |
| Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.1 TS1M3 SP4 | 9.2 TS1M0 |
| Microsoft Windows XP 64-bit Edition | 9.1 TS1M3 SP4 | 9.2 TS1M0 |
| Microsoft® Windows® for x64 | 9.1 TS1M3 SP4 | 9.2 TS1M0 |
| Microsoft Windows 2000 Advanced Server | 9.1 TS1M3 SP4 | |
| Microsoft Windows 2000 Datacenter Server | 9.1 TS1M3 SP4 | |
| Microsoft Windows 2000 Server | 9.1 TS1M3 SP4 | |
| Microsoft Windows 2000 Professional | 9.1 TS1M3 SP4 | |
| Microsoft Windows NT Workstation | 9.1 TS1M3 SP4 | |
| Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 SP4 | 9.2 TS1M0 |
| Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 SP4 | 9.2 TS1M0 |
| Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 SP4 | 9.2 TS1M0 |
| Microsoft Windows XP Professional | 9.1 TS1M3 SP4 | 9.2 TS1M0 |
| Windows Vista | 9.1 TS1M3 SP4 | 9.2 TS1M0 |
| 64-bit Enabled AIX | 9.1 TS1M3 SP4 | 9.2 TS1M0 |
| 64-bit Enabled HP-UX | 9.1 TS1M3 SP4 | 9.2 TS1M0 |
| 64-bit Enabled Solaris | 9.1 TS1M3 SP4 | 9.2 TS1M0 |
| HP-UX IPF | 9.1 TS1M3 SP4 | 9.2 TS1M0 |
| Linux | 9.1 TS1M3 SP4 | 9.2 TS1M0 |
| Linux on Itanium | 9.1 TS1M3 SP4 | 9.2 TS1M0 |
| OpenVMS Alpha | 9.1 TS1M3 SP4 | 9.2 TS1M0 |
| Tru64 UNIX | 9.1 TS1M3 SP4 | 9.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.
| Type: | Problem Note |
| Priority: | medium |
| Date Modified: | 2009-09-14 12:43:19 |
| Date Created: | 2008-06-25 10:49:30 |