SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 55158: The byte-order mark (BOM) signature is missing when you export data to a file in SAS® Customer Intelligence

DetailsHotfixAboutRate It

Typically, when you create an external file, the file is created in UTF-8 format with a BOM signature. However, in SAS Customer Intelligence, the BOM signature is missing when you export data to an external file in the UTF-8 encoding.

This problem occurs because the following FILE statement that is used in SAS Customer Intelligence does not have the ENCODING='UTF-8' option:

MPRINT(MAEXPFIL): file "c:\CI\MAExport\test_for_BOM.csv" dlm="," recfm=v lrecl=32767;"

As a workaround, add the highlighted lines below to the MAEXPFIL.SAS macro. Typically, this macro is located in the SASHOME-directory\SASFoundation\9.3\ma\sasmacro directory.

   /*S0897280 - Removed checks for outputtype= 0 & 1. */
%if &outputType=7 %then
   %let export_filestmt=&export_filestmt dlm=&dlmchar; /* Delimited or (old) CSV or TAB delimited*/

   %let export_filestmt=&export_filestmt recfm=v lrecl=32767;

%if %nrbquote(&SysEncoding) = %str(utf-8) %then             
    %let export_filestmt=&export_filestmt ENCODING='UTF-8';

filename logfile temp lrecl=32767;

data _null_;
   set &vards end=done;

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 SystemSAS Customer Intelligence StudioMicrosoft Windows Server 2012 Std6.1_M16.49.4 TS1M0
Microsoft Windows Server 2012 R2 Std6.1_M16.49.4 TS1M0
Microsoft Windows Server 2012 R2 Datacenter6.1_M16.49.4 TS1M0
Microsoft Windows Server 2012 Datacenter6.1_M16.49.4 TS1M0
Microsoft Windows Server 2008 for x646.1_M16.49.4 TS1M0
Microsoft Windows Server 2008 R26.1_M16.49.4 TS1M0
Microsoft Windows 8.1 Pro 32-bit6.1_M16.49.4 TS1M0
Microsoft Windows 8.1 Pro6.1_M16.49.4 TS1M0
Microsoft Windows 8.1 Enterprise x646.1_M16.49.4 TS1M0
Microsoft Windows 8.1 Enterprise 32-bit6.1_M16.49.4 TS1M0
Microsoft Windows 8 Pro x646.1_M16.49.4 TS1M0
Microsoft Windows 8 Enterprise x646.1_M16.49.4 TS1M0
Microsoft® Windows® for x646.1_M16.49.4 TS1M0
Windows 7 Enterprise x646.1_M16.49.4 TS1M0
Windows 7 Professional x646.1_M16.49.4 TS1M0
64-bit Enabled AIX6.1_M16.49.4 TS1M0
64-bit Enabled Solaris6.1_M16.49.4 TS1M0
HP-UX IPF6.1_M16.49.4 TS1M0
Linux for x646.1_M16.49.4 TS1M0
Solaris for x646.1_M16.49.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.