![]() | ![]() | ![]() | ![]() | ![]() |
The items in a multiple-item list do not maintain the same order in which you inserted them when using ordered DATA step hashes.
This problem occurs when the MULTIDATA:'YES' argument is specified in the DECLARE HASH statement.
The following code example illustrates the problem, and there is also a line in the comments that provides a workaround:
When the code above is run without the workaround, the city names are listed in the output as “Raleigh, Spruce Pine, Wilson, Cary.” You would expect the output to list the items as “Raleigh, Cary, Wilson, Spruce Pine,” which is how you ordered them in the code.
Click the Hot Fix tab in this note for a link to instructions about accessing and applying the software update.
Product Family | Product | System | Product Release | SAS Release | ||
Reported | Fixed* | Reported | Fixed* | |||
SAS System | SAS Viya | Linux for x64 | 3.4 | 3.5 | Viya | Viya |
Windows Vista | 3.4 | Viya | ||||
Windows Millennium Edition (Me) | 3.4 | Viya | ||||
Windows 7 Ultimate x64 | 3.4 | 3.5 | Viya | Viya | ||
Windows 7 Ultimate 32 bit | 3.4 | Viya | ||||
Windows 7 Professional x64 | 3.4 | 3.5 | Viya | Viya | ||
Windows 7 Home Premium x64 | 3.4 | 3.5 | Viya | Viya | ||
Windows 7 Home Premium 32 bit | 3.4 | Viya | ||||
Windows 7 Enterprise x64 | 3.4 | 3.5 | Viya | Viya | ||
Windows 7 Enterprise 32 bit | 3.4 | Viya | ||||
Microsoft Windows XP Professional | 3.4 | Viya | ||||
Microsoft Windows Server 2016 | 3.4 | 3.5 | Viya | Viya | ||
Microsoft Windows Server 2012 Std | 3.4 | 3.5 | Viya | Viya | ||
Microsoft Windows Server 2012 R2 Std | 3.4 | 3.5 | Viya | Viya | ||
Microsoft Windows Server 2012 R2 Datacenter | 3.4 | 3.5 | Viya | Viya | ||
Microsoft Windows Server 2012 Datacenter | 3.4 | 3.5 | Viya | Viya | ||
Microsoft Windows Server 2008 for x64 | 3.4 | 3.5 | Viya | Viya | ||
Microsoft Windows Server 2008 R2 | 3.4 | 3.5 | Viya | Viya | ||
Windows 7 Professional 32 bit | 3.4 | Viya | ||||
Windows Vista for x64 | 3.4 | 3.5 | Viya | Viya | ||
Microsoft Windows Server 2019 | 3.4 | Viya | ||||
Microsoft® Windows® for x64 | 3.4 | 3.5 | Viya | Viya | ||
Microsoft Windows 8 Enterprise 32-bit | 3.4 | Viya | ||||
Microsoft Windows 8 Enterprise x64 | 3.4 | 3.5 | Viya | Viya | ||
Microsoft Windows 8 Pro 32-bit | 3.4 | Viya | ||||
Microsoft Windows 8 Pro x64 | 3.4 | 3.5 | Viya | Viya | ||
Microsoft Windows 8.1 Enterprise 32-bit | 3.4 | Viya | ||||
Microsoft Windows 8.1 Enterprise x64 | 3.4 | 3.5 | Viya | Viya | ||
Microsoft Windows 8.1 Pro 32-bit | 3.4 | Viya | ||||
Microsoft Windows 8.1 Pro x64 | 3.4 | 3.5 | Viya | Viya | ||
Microsoft Windows 10 | 3.4 | 3.5 | Viya | Viya | ||
Microsoft Windows 95/98 | 3.4 | Viya | ||||
Microsoft Windows 2000 Advanced Server | 3.4 | Viya | ||||
Microsoft Windows 2000 Datacenter Server | 3.4 | Viya | ||||
Microsoft Windows 2000 Server | 3.4 | Viya | ||||
Microsoft Windows 2000 Professional | 3.4 | Viya | ||||
Microsoft Windows NT Workstation | 3.4 | Viya | ||||
Microsoft Windows Server 2003 Datacenter Edition | 3.4 | Viya | ||||
Microsoft Windows Server 2003 Enterprise Edition | 3.4 | Viya | ||||
Microsoft Windows Server 2003 Standard Edition | 3.4 | Viya | ||||
Microsoft Windows Server 2003 for x64 | 3.4 | 3.5 | Viya | Viya | ||
Microsoft Windows Server 2008 | 3.4 | Viya |