SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 36269: Inconsistent transcoding using the KCVT function produces incorrect results in SAS® 9.2

DetailsHotfixAboutRate It

Inconsistency exists between transcoding in SAS® 9.1.3 and SAS 9.2 for some of SJIS punctuation characters.

The example below uses the KCVT function and illustrates the problem. In SAS 9.2, transcoding does not handle the Unicode x301c character properly:

 
  data;
   x='8160'x ; * '~';
   un1=kcvt(x,'sjis','ucs2b');
   sj1=kcvt(un1,'ucs2b','sjis');
   put un1= $hex4. sj1=;
   un2=unicodec(x);
   sj2=unicode(un2);
   put un2= sj2=;
   y='301c'x ; * unicode tilde ;
   sj3=kcvt(y,'ucs2b','');
   put sj3 = sj3 ;
   sj4=unicode(y,'utf16b');
   put sj4= sj4;
  run;

  9.1.3 Result:

  un1=301C sj1=~
  un2=\uFF5E sj2=~
  sj3=~ ~
  sj4=~ ~

  9.2 Result:

  un1=FF5E sj1=~
  un2=\uFF5E sj2=~
  sj3=   
  sj4=~ ~

The results in SAS 9.1.3 are correct. The results in SAS 9.2 are incorrect.

A hotfix is planned for this issue.

Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SASWindows Vista for x649.1 TS1M3 SP39.1 TS1M3 SP4
Windows Vista9.1 TS1M3 SP39.1 TS1M3 SP4
Microsoft Windows XP Professional9.1 TS1M3 SP39.1 TS1M3 SP4
Microsoft Windows Server 2003 Standard Edition9.1 TS1M3 SP39.1 TS1M3 SP4
Microsoft Windows Server 2003 Enterprise Edition9.1 TS1M3 SP39.1 TS1M3 SP4
Microsoft Windows Server 2003 Datacenter Edition9.1 TS1M3 SP39.1 TS1M3 SP4
Microsoft Windows NT Workstation9.1 TS1M3 SP39.1 TS1M3 SP4
Microsoft Windows 2000 Professional9.1 TS1M3 SP39.1 TS1M3 SP4
Microsoft Windows 2000 Server9.1 TS1M3 SP39.1 TS1M3 SP4
Microsoft Windows 2000 Datacenter Server9.1 TS1M3 SP39.1 TS1M3 SP4
Microsoft Windows 2000 Advanced Server9.1 TS1M3 SP39.1 TS1M3 SP4
Microsoft Windows XP 64-bit Edition9.1 TS1M3 SP39.1 TS1M3 SP4
Microsoft Windows Server 2003 Enterprise 64-bit Edition9.1 TS1M3 SP39.1 TS1M3 SP4
Microsoft Windows Server 2003 Datacenter 64-bit Edition9.1 TS1M3 SP39.1 TS1M3 SP4
Microsoft® Windows® for 64-Bit Itanium-based Systems9.1 TS1M3 SP39.1 TS1M3 SP4
* 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.