SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 36280: The SQL procedure generates incorrect results when you copy a SAS® data set from one platform to another platform

DetailsHotfixAboutRate It

The SQL procedure might generate incorrect results when you copy a SAS data set from one platform to another. The problem occurs because PROC SQL incorrectly uses the sort flag for the data set without considering the collating sequence. EBCDIC and ASCII code pages have different sorting orders. Not considering special characters, the ASCII code page sorts values in this order: 0-9 A-Z a-z. The EBCDIC code page sorts values in this order: a-z A-Z 0-9.

When a SAS data set is copied to another platform, the data is transcoded. The data set does not appear sorted on the target platform because the data is still sorted according to the sort order from the previous location. For example, suppose you create a SAS data set and sort it in the z/OS environment and you then copy it to a Windows environment. In that case, the actual data is ASCII encoded after it is transferred, but the data is sorted according to the EBCDIC sort order because the data set's previous location was on an EBCDIC-based machine under z/OS.

To work around this problem, remove the sort indicator flag by using the SORTEDBY=_NULL_ data set option when you reference the table in PROC SQL.

Select the Hot Fix tab in this note to access the hot fix for this issue.



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SASMicrosoft Windows 2000 Datacenter Server9.1 TS1M3 SP4
Microsoft Windows 2000 Advanced Server9.1 TS1M3 SP4
Microsoft Windows XP 64-bit Edition9.1 TS1M3 SP49.2 TS2M2
Microsoft Windows Server 2003 Enterprise 64-bit Edition9.1 TS1M3 SP49.2 TS2M2
Microsoft Windows Server 2003 Datacenter 64-bit Edition9.1 TS1M3 SP49.2 TS2M2
Microsoft® Windows® for 64-Bit Itanium-based Systems9.1 TS1M3 SP49.2 TS2M2
z/OS9.1 TS1M3 SP49.2 TS2M2
Microsoft Windows Server 2003 Standard Edition9.1 TS1M3 SP49.2 TS2M2
Microsoft Windows Server 2003 Enterprise Edition9.1 TS1M3 SP49.2 TS2M2
Microsoft Windows Server 2003 Datacenter Edition9.1 TS1M3 SP49.2 TS2M2
Microsoft Windows NT Workstation9.1 TS1M3 SP4
Microsoft Windows 2000 Professional9.1 TS1M3 SP4
Microsoft Windows 2000 Server9.1 TS1M3 SP4
Microsoft Windows Server 20089.1 TS1M3 SP49.2 TS2M2
Microsoft Windows XP Professional9.1 TS1M3 SP49.2 TS2M2
Windows Vista9.1 TS1M3 SP49.2 TS2M2
64-bit Enabled AIX9.1 TS1M3 SP49.2 TS2M2
64-bit Enabled HP-UX9.1 TS1M3 SP49.2 TS2M2
64-bit Enabled Solaris9.1 TS1M3 SP49.2 TS2M2
HP-UX IPF9.1 TS1M3 SP49.2 TS2M2
Linux9.1 TS1M3 SP49.2 TS2M2
Linux on Itanium9.1 TS1M3 SP49.2 TS2M2
OpenVMS Alpha9.1 TS1M3 SP49.2 TS2M2
Solaris for x649.1 TS1M3 SP49.2 TS2M2
Tru64 UNIX9.1 TS1M3 SP49.2 TS2M2
* 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.