Problem Note 42334: Extra rows are returned in resulting data sets when you use the syntax SELECT * rather than SELECT A, B, C in SASĀ® Warranty Analysis
With SAS® 9.1, SAS Warranty Analysis 4.1 returns 372 rows in the resulting data set for queries that are made by SELECT statements in the SQL procedure. The correct number of rows is 316.
Example
Assume that you have a table called TEST with 316 rows and a column called VAR1:
-
If you run the query
select VAR1 from .TEST
using the integrated object model (IOM) JDBC driver, the resulting data set will contain 316 rows. This is the number of rows that the resulting set should contain.
-
If you run the query
select * from .TEST using IOM JDBC, 372 rows will be returned.
-
If you run either query using Base SAS® software, you will get the correct number of rows, 316.
The problem is triggered when you use the syntax SELECT* instead of SELECT A, B, C in PROC SQL queries.
This problem does not happen in all data sets. It is a server issue that affects SAS/SHARE® servers in the third maintenance release for SAS 9.1.3 (TS1M3), Service Pack 4.
Workaround
Add this %LET statement in front of the remote engine LIBNAME statement:
%let noovlpio=yes;
libname libref remote server=server-name;
The NOOVLPIO macro forces the remote engine to turn off overlapping I/O for situations such as those described in this SAS note.
An alternate workaround is to upgrade from SAS 9.1.3 Service Pack 4, to SAS® 9.2.
Click the Hot Fix tab in this note to access the hot fix for this issue.
Operating System and Release Information
SAS System | SAS Warranty Analysis | Microsoft Windows 2000 Advanced Server | 4.1 | 4.1 | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
Microsoft Windows 2000 Datacenter Server | 4.1 | 4.1 | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
Microsoft Windows 2000 Server | 4.1 | 4.1 | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
Microsoft Windows 2000 Professional | 4.1 | 4.1 | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
Microsoft Windows NT Workstation | 4.1 | 4.1 | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
Microsoft Windows Server 2003 Datacenter Edition | 4.1 | 4.1 | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
Microsoft Windows Server 2003 Enterprise Edition | 4.1 | 4.1 | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
Microsoft Windows Server 2003 Standard Edition | 4.1 | 4.1 | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
Microsoft Windows XP Professional | 4.1 | 4.1 | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
Windows Vista | 4.1 | 4.1 | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
Windows Vista for x64 | 4.1 | 4.1 | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
64-bit Enabled AIX | 4.1 | 4.1 | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
64-bit Enabled Solaris | 4.1 | 4.1 | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
HP-UX IPF | 4.1 | 4.1 | 9.1 TS1M3 SP4 | 9.1 TS1M3 SP4 |
*
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: | alert |
Date Modified: | 2011-03-24 10:24:39 |
Date Created: | 2011-02-08 21:35:37 |