Problem Note 55158: The byte-order mark (BOM) signature is missing when you export data to a file in SAS® Customer Intelligence
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
SAS System | SAS Customer Intelligence Studio | Microsoft Windows Server 2012 Std | 6.1_M1 | 6.4 | | 9.4 TS1M0 |
Microsoft Windows Server 2012 R2 Std | 6.1_M1 | 6.4 | | 9.4 TS1M0 |
Microsoft Windows Server 2012 R2 Datacenter | 6.1_M1 | 6.4 | | 9.4 TS1M0 |
Microsoft Windows Server 2012 Datacenter | 6.1_M1 | 6.4 | | 9.4 TS1M0 |
Microsoft Windows Server 2008 for x64 | 6.1_M1 | 6.4 | | 9.4 TS1M0 |
Microsoft Windows Server 2008 R2 | 6.1_M1 | 6.4 | | 9.4 TS1M0 |
Microsoft Windows 8.1 Pro 32-bit | 6.1_M1 | 6.4 | | 9.4 TS1M0 |
Microsoft Windows 8.1 Pro | 6.1_M1 | 6.4 | | 9.4 TS1M0 |
Microsoft Windows 8.1 Enterprise x64 | 6.1_M1 | 6.4 | | 9.4 TS1M0 |
Microsoft Windows 8.1 Enterprise 32-bit | 6.1_M1 | 6.4 | | 9.4 TS1M0 |
Microsoft Windows 8 Pro x64 | 6.1_M1 | 6.4 | | 9.4 TS1M0 |
Microsoft Windows 8 Enterprise x64 | 6.1_M1 | 6.4 | | 9.4 TS1M0 |
Microsoft® Windows® for x64 | 6.1_M1 | 6.4 | | 9.4 TS1M0 |
Windows 7 Enterprise x64 | 6.1_M1 | 6.4 | | 9.4 TS1M0 |
Windows 7 Professional x64 | 6.1_M1 | 6.4 | | 9.4 TS1M0 |
64-bit Enabled AIX | 6.1_M1 | 6.4 | | 9.4 TS1M0 |
64-bit Enabled Solaris | 6.1_M1 | 6.4 | | 9.4 TS1M0 |
HP-UX IPF | 6.1_M1 | 6.4 | | 9.4 TS1M0 |
Linux for x64 | 6.1_M1 | 6.4 | | 9.4 TS1M0 |
Solaris for x64 | 6.1_M1 | 6.4 | | 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: | medium |
Date Modified: | 2015-02-25 08:00:41 |
Date Created: | 2015-02-06 09:45:18 |