Problem Note 56944: The PROC SORT NOUNIQUEKEY option is not honored when the host sort interface is used
The NOUNIQUEKEY option (aliases: NOUNIKEY | NOUNIKEYS | NOUNIQUEKEYS) for the SAS SORT procedure
is not being honored when the host sort interface is used. In this scenario, the data is sorted, but
it contains both the unique key observations and the non-unique key observations.
The circumvention is to set the SAS system option SORTPGM=SAS prior to the PROC SORT step that uses
the NOUNIQUEKEY option. SORTPGM=SAS can be set in an OPTIONS statement prior to the PROC SORT step.
Here is an example:
OPTIONS SORTPGM=SAS; /* About to sort with NOUNIQUEKEY so use SAS internal sort */
PROC SORT DATA=insasds OUT=outsasds NOUNIQUEKEY;
BY var1 ... varx;
RUN;
OPTIONS SORTPGM=BEST; /* Finished with NOUNIQUEKEY option so reset to default */
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 | Solaris for x64 | 9.4 TS1M2 | |
Linux for x64 | 9.4 TS1M2 | |
HP-UX IPF | 9.4 TS1M2 | |
64-bit Enabled Solaris | 9.4 TS1M2 | |
64-bit Enabled AIX | 9.4 TS1M2 | |
Windows 7 Ultimate x64 | 9.4 TS1M2 | |
Windows 7 Ultimate 32 bit | 9.4 TS1M2 | |
Windows 7 Professional x64 | 9.4 TS1M2 | |
Windows 7 Professional 32 bit | 9.4 TS1M2 | |
Windows 7 Home Premium x64 | 9.4 TS1M2 | |
Windows 7 Home Premium 32 bit | 9.4 TS1M2 | |
Windows 7 Enterprise x64 | 9.4 TS1M2 | |
Windows 7 Enterprise 32 bit | 9.4 TS1M2 | |
Microsoft Windows Server 2012 Std | 9.4 TS1M2 | |
Microsoft Windows Server 2012 R2 Std | 9.4 TS1M2 | |
Microsoft Windows Server 2012 R2 Datacenter | 9.4 TS1M2 | |
Microsoft Windows Server 2012 Datacenter | 9.4 TS1M2 | |
Microsoft Windows Server 2008 for x64 | 9.4 TS1M2 | |
Microsoft Windows Server 2008 R2 | 9.4 TS1M2 | |
Microsoft Windows Server 2008 | 9.4 TS1M2 | |
Microsoft Windows 8.1 Pro 32-bit | 9.4 TS1M2 | |
Microsoft Windows 8.1 Pro | 9.4 TS1M2 | |
Microsoft Windows 8.1 Enterprise x64 | 9.4 TS1M2 | |
Microsoft Windows 8.1 Enterprise 32-bit | 9.4 TS1M2 | |
Microsoft Windows 8 Pro x64 | 9.4 TS1M2 | |
Microsoft Windows 8 Pro 32-bit | 9.4 TS1M2 | |
Microsoft Windows 8 Enterprise x64 | 9.4 TS1M2 | |
Microsoft Windows 8 Enterprise 32-bit | 9.4 TS1M2 | |
Microsoft® Windows® for x64 | 9.4 TS1M2 | |
z/OS | 9.4 TS1M2 | |
z/OS 64-bit | 9.4 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.
Type: | Problem Note |
Priority: | medium |
Date Modified: | 2016-01-04 14:54:23 |
Date Created: | 2015-10-28 10:16:38 |