SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 50344: In SAS® 9.3, the KSCAN function does not return a value when the delimiter is a single-byte space

DetailsHotfixAboutRate It

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

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemBase SASz/OS9.3_M29.49.3 TS1M29.4 TS1M0
Z649.3_M29.49.3 TS1M29.4 TS1M0
Microsoft® Windows® for x649.3_M29.49.3 TS1M29.4 TS1M0
Microsoft Windows Server 2003 Datacenter Edition9.3_M29.3 TS1M2
Microsoft Windows Server 2003 Enterprise Edition9.3_M29.3 TS1M2
Microsoft Windows Server 2003 Standard Edition9.3_M29.3 TS1M2
Microsoft Windows Server 2003 for x649.3_M29.3 TS1M2
Microsoft Windows Server 20089.3_M29.3 TS1M2
Microsoft Windows Server 2008 R2 for x649.3_M29.49.3 TS1M29.4 TS1M0
Microsoft Windows Server 2008 for x649.3_M29.49.3 TS1M29.4 TS1M0
Microsoft Windows XP Professional9.3_M29.3 TS1M2
Windows 7 Enterprise 32 bit9.3_M29.3 TS1M2
Windows 7 Enterprise x649.3_M29.49.3 TS1M29.4 TS1M0
Windows 7 Home Premium 32 bit9.3_M29.3 TS1M2
Windows 7 Home Premium x649.3_M29.3 TS1M2
Windows 7 Professional 32 bit9.3_M29.3 TS1M2
Windows 7 Professional x649.3_M29.49.3 TS1M29.4 TS1M0
Windows 7 Ultimate 32 bit9.3_M29.3 TS1M2
Windows 7 Ultimate x649.3_M29.3 TS1M2
Windows Vista9.3_M29.3 TS1M2
Windows Vista for x649.3_M29.3 TS1M2
64-bit Enabled AIX9.3_M29.49.3 TS1M29.4 TS1M0
64-bit Enabled HP-UX9.3_M29.49.3 TS1M29.4 TS1M0
64-bit Enabled Solaris9.3_M29.49.3 TS1M29.4 TS1M0
HP-UX IPF9.3_M29.49.3 TS1M29.4 TS1M0
Linux9.3_M29.49.3 TS1M29.4 TS1M0
Linux for x649.3_M29.49.3 TS1M29.4 TS1M0
Solaris for x649.3_M29.49.3 TS1M29.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.