Problem Note 50344: In SAS® 9.3, the KSCAN function does not return a value when the delimiter is a single-byte space
When a single-byte space is used as a delimiter in double-byte character set (DBCS) data, the KSCAN function does not work properly. No value is returned after you run the KSCAN function with a single-byte space as a delimiter. Here is an example:
data _null_;
a='あ い う え お';
x=kscan(a,3,' ');
put x=;
run;
The output, as follows, contains no result for X:
X=
The result for X should like this:
X= う
This problem occurs only on SAS 9.3.
To work around the issue, use the SCAN function instead.
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 | z/OS | 9.3_M2 | 9.4 | 9.3 TS1M2 | 9.4 TS1M0 |
Z64 | 9.3_M2 | 9.4 | 9.3 TS1M2 | 9.4 TS1M0 |
Microsoft® Windows® for x64 | 9.3_M2 | 9.4 | 9.3 TS1M2 | 9.4 TS1M0 |
Microsoft Windows Server 2003 Datacenter Edition | 9.3_M2 | | 9.3 TS1M2 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.3_M2 | | 9.3 TS1M2 | |
Microsoft Windows Server 2003 Standard Edition | 9.3_M2 | | 9.3 TS1M2 | |
Microsoft Windows Server 2003 for x64 | 9.3_M2 | | 9.3 TS1M2 | |
Microsoft Windows Server 2008 | 9.3_M2 | | 9.3 TS1M2 | |
Microsoft Windows Server 2008 R2 for x64 | 9.3_M2 | 9.4 | 9.3 TS1M2 | 9.4 TS1M0 |
Microsoft Windows Server 2008 for x64 | 9.3_M2 | 9.4 | 9.3 TS1M2 | 9.4 TS1M0 |
Microsoft Windows XP Professional | 9.3_M2 | | 9.3 TS1M2 | |
Windows 7 Enterprise 32 bit | 9.3_M2 | | 9.3 TS1M2 | |
Windows 7 Enterprise x64 | 9.3_M2 | 9.4 | 9.3 TS1M2 | 9.4 TS1M0 |
Windows 7 Home Premium 32 bit | 9.3_M2 | | 9.3 TS1M2 | |
Windows 7 Home Premium x64 | 9.3_M2 | | 9.3 TS1M2 | |
Windows 7 Professional 32 bit | 9.3_M2 | | 9.3 TS1M2 | |
Windows 7 Professional x64 | 9.3_M2 | 9.4 | 9.3 TS1M2 | 9.4 TS1M0 |
Windows 7 Ultimate 32 bit | 9.3_M2 | | 9.3 TS1M2 | |
Windows 7 Ultimate x64 | 9.3_M2 | | 9.3 TS1M2 | |
Windows Vista | 9.3_M2 | | 9.3 TS1M2 | |
Windows Vista for x64 | 9.3_M2 | | 9.3 TS1M2 | |
64-bit Enabled AIX | 9.3_M2 | 9.4 | 9.3 TS1M2 | 9.4 TS1M0 |
64-bit Enabled HP-UX | 9.3_M2 | 9.4 | 9.3 TS1M2 | 9.4 TS1M0 |
64-bit Enabled Solaris | 9.3_M2 | 9.4 | 9.3 TS1M2 | 9.4 TS1M0 |
HP-UX IPF | 9.3_M2 | 9.4 | 9.3 TS1M2 | 9.4 TS1M0 |
Linux | 9.3_M2 | 9.4 | 9.3 TS1M2 | 9.4 TS1M0 |
Linux for x64 | 9.3_M2 | 9.4 | 9.3 TS1M2 | 9.4 TS1M0 |
Solaris for x64 | 9.3_M2 | 9.4 | 9.3 TS1M2 | 9.4 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: | high |
Date Modified: | 2013-08-02 15:34:36 |
Date Created: | 2013-07-08 17:19:53 |