When a character string in an Amazon Redshift, Impala, Netezza, or PostgreSQL table contains a character that cannot be represented in the SAS® session encoding, you receive the following error:
The default SAS session encoding is UTF-8. Warnings are generated in the SAS log under these circumstances:
For details about rows and columns that are affected by transcoding errors, enable the SASTRACE= option:
Change the encoding for your environment to UTF-8. If an encoding migration is not feasible, see the following section.
SAS® 9.4M6 offers support for a new SUB_CHAR= LIBNAME statement option for SAS/ACCESS® Interface to Amazon Redshift, SAS/ACCESS® Interface to Netezza, and SAS/ACCESS® Interface to PostgreSQL. This option specifies a substitution character to use in place of any invalid characters that cannot be represented in the SAS session encoding. This option will be available for SAS/ACCESS® to Impala with SAS® 9.4M7
This new option is also available in a forthcoming hot fix for other maintenance releases of SAS® 9.4.
Details about the syntax follow here:
SUB_CHAR=value
Syntax Description
value
specifies the substitution character to use in place of a character that cannot be represented in the SAS session encoding.
Here are the possible values for SUB_CHAR=:
SPACE
specifies that a space replaces an invalid character during transcoding.
SUB
specifies that the default substitution character for the source encoding replaces an invalid character during transcoding. The default substitution character varies depending on your source encoding and on your system platform. For example, the substitution character might be represented by a “0x1A” character in a Windows environment and by a “?” in a Linux environment.
UESC
specifies that the “\uddd” value replaces an invalid character during transcoding. This UESC value is typically used only during debugging and is not intended for large-scale jobs. (Note: In SAS® 9.4M4F, the UESC option is not available because it is not in the underlying routines for national language support.)
Click the Hot Fix tab in this note to access the hot fix for this issue.
Product Family | Product | System | SAS Release | |
Reported | Fixed* | |||
SAS System | SAS/ACCESS Interface to Amazon Redshift | HP-UX IPF | 9.4 TS1M4 | 9.4 TS1M6 |
64-bit Enabled Solaris | 9.4 TS1M4 | 9.4 TS1M6 | ||
64-bit Enabled AIX | 9.4 TS1M4 | 9.4 TS1M6 | ||
Windows 7 Ultimate x64 | 9.4 TS1M4 | 9.4 TS1M6 | ||
Windows 7 Ultimate 32 bit | 9.4 TS1M4 | 9.4 TS1M6 | ||
Windows 7 Professional x64 | 9.4 TS1M4 | 9.4 TS1M6 | ||
Windows 7 Professional 32 bit | 9.4 TS1M4 | 9.4 TS1M6 | ||
Windows 7 Home Premium x64 | 9.4 TS1M4 | 9.4 TS1M6 | ||
Windows 7 Home Premium 32 bit | 9.4 TS1M4 | 9.4 TS1M6 | ||
Windows 7 Enterprise x64 | 9.4 TS1M4 | 9.4 TS1M6 | ||
Windows 7 Enterprise 32 bit | 9.4 TS1M4 | 9.4 TS1M6 | ||
Microsoft Windows Server 2012 Std | 9.4 TS1M4 | 9.4 TS1M6 | ||
Microsoft Windows Server 2012 R2 Std | 9.4 TS1M4 | 9.4 TS1M6 | ||
Microsoft Windows Server 2012 R2 Datacenter | 9.4 TS1M4 | 9.4 TS1M6 | ||
Microsoft Windows Server 2012 Datacenter | 9.4 TS1M4 | 9.4 TS1M6 | ||
Microsoft Windows 10 | 9.4 TS1M4 | 9.4 TS1M6 | ||
Microsoft Windows 8.1 Pro x64 | 9.4 TS1M4 | 9.4 TS1M6 | ||
Microsoft Windows 8.1 Pro 32-bit | 9.4 TS1M4 | 9.4 TS1M6 | ||
Microsoft Windows 8.1 Enterprise x64 | 9.4 TS1M4 | 9.4 TS1M6 | ||
Microsoft Windows 8.1 Enterprise 32-bit | 9.4 TS1M4 | 9.4 TS1M6 | ||
Microsoft Windows 8 Pro x64 | 9.4 TS1M4 | 9.4 TS1M6 | ||
Microsoft Windows 8 Pro 32-bit | 9.4 TS1M4 | 9.4 TS1M6 | ||
Microsoft Windows 8 Enterprise x64 | 9.4 TS1M4 | 9.4 TS1M6 | ||
Microsoft Windows 8 Enterprise 32-bit | 9.4 TS1M4 | 9.4 TS1M6 | ||
Microsoft® Windows® for x64 | 9.4 TS1M4 | 9.4 TS1M6 | ||
Linux for x64 | 9.4 TS1M4 | 9.4 TS1M6 | ||
Solaris for x64 | 9.4 TS1M4 | 9.4 TS1M6 | ||
SAS System | SAS/ACCESS Interface to Netezza | Microsoft® Windows® for x64 | 9.4 TS1M4 | 9.4 TS1M6 |
Microsoft Windows 8 Enterprise 32-bit | 9.4 TS1M4 | 9.4 TS1M6 | ||
Microsoft Windows 8 Enterprise x64 | 9.4 TS1M4 | 9.4 TS1M6 | ||
Microsoft Windows 8 Pro 32-bit | 9.4 TS1M4 | 9.4 TS1M6 | ||
Microsoft Windows 8 Pro x64 | 9.4 TS1M4 | 9.4 TS1M6 | ||
Microsoft Windows 8.1 Enterprise 32-bit | 9.4 TS1M4 | 9.4 TS1M6 | ||
Microsoft Windows 8.1 Enterprise x64 | 9.4 TS1M4 | 9.4 TS1M6 | ||
Microsoft Windows 8.1 Pro 32-bit | 9.4 TS1M4 | 9.4 TS1M6 | ||
Microsoft Windows 8.1 Pro x64 | 9.4 TS1M4 | 9.4 TS1M6 | ||
Microsoft Windows 10 | 9.4 TS1M4 | 9.4 TS1M6 | ||
Microsoft Windows Server 2012 Datacenter | 9.4 TS1M4 | 9.4 TS1M6 | ||
Microsoft Windows Server 2012 R2 Datacenter | 9.4 TS1M4 | 9.4 TS1M6 | ||
Microsoft Windows Server 2012 R2 Std | 9.4 TS1M4 | 9.4 TS1M6 | ||
Microsoft Windows Server 2012 Std | 9.4 TS1M4 | 9.4 TS1M6 | ||
Windows 7 Enterprise 32 bit | 9.4 TS1M4 | 9.4 TS1M6 | ||
Windows 7 Enterprise x64 | 9.4 TS1M4 | 9.4 TS1M6 | ||
Windows 7 Home Premium 32 bit | 9.4 TS1M4 | 9.4 TS1M6 | ||
Windows 7 Home Premium x64 | 9.4 TS1M4 | 9.4 TS1M6 | ||
Windows 7 Professional 32 bit | 9.4 TS1M4 | 9.4 TS1M6 | ||
Windows 7 Professional x64 | 9.4 TS1M4 | 9.4 TS1M6 | ||
Windows 7 Ultimate 32 bit | 9.4 TS1M4 | 9.4 TS1M6 | ||
Windows 7 Ultimate x64 | 9.4 TS1M4 | 9.4 TS1M6 | ||
64-bit Enabled AIX | 9.4 TS1M4 | 9.4 TS1M6 | ||
64-bit Enabled Solaris | 9.4 TS1M4 | 9.4 TS1M6 | ||
HP-UX IPF | 9.4 TS1M4 | 9.4 TS1M6 | ||
Linux for x64 | 9.4 TS1M4 | 9.4 TS1M6 | ||
SAS System | SAS/ACCESS Interface to PostgreSQL | Microsoft® Windows® for x64 | 9.4 TS1M4 | 9.4 TS1M6 |
Microsoft Windows 8 Enterprise 32-bit | 9.4 TS1M4 | 9.4 TS1M6 | ||
Microsoft Windows 8 Enterprise x64 | 9.4 TS1M4 | 9.4 TS1M6 | ||
Microsoft Windows 8 Pro 32-bit | 9.4 TS1M4 | 9.4 TS1M6 | ||
Microsoft Windows 8 Pro x64 | 9.4 TS1M4 | 9.4 TS1M6 | ||
Microsoft Windows 8.1 Enterprise 32-bit | 9.4 TS1M4 | 9.4 TS1M6 | ||
Microsoft Windows 8.1 Enterprise x64 | 9.4 TS1M4 | 9.4 TS1M6 | ||
Microsoft Windows 8.1 Pro 32-bit | 9.4 TS1M4 | 9.4 TS1M6 | ||
Microsoft Windows 8.1 Pro x64 | 9.4 TS1M4 | 9.4 TS1M6 | ||
Microsoft Windows 10 | 9.4 TS1M4 | 9.4 TS1M6 | ||
Microsoft Windows Server 2012 Datacenter | 9.4 TS1M4 | 9.4 TS1M6 | ||
Microsoft Windows Server 2012 R2 Datacenter | 9.4 TS1M4 | 9.4 TS1M6 | ||
Microsoft Windows Server 2012 R2 Std | 9.4 TS1M4 | 9.4 TS1M6 | ||
Microsoft Windows Server 2012 Std | 9.4 TS1M4 | 9.4 TS1M6 | ||
Windows 7 Enterprise 32 bit | 9.4 TS1M4 | 9.4 TS1M6 | ||
Windows 7 Enterprise x64 | 9.4 TS1M4 | 9.4 TS1M6 | ||
Windows 7 Home Premium 32 bit | 9.4 TS1M4 | 9.4 TS1M6 | ||
Windows 7 Home Premium x64 | 9.4 TS1M4 | 9.4 TS1M6 | ||
Windows 7 Professional 32 bit | 9.4 TS1M4 | 9.4 TS1M6 | ||
Windows 7 Professional x64 | 9.4 TS1M4 | 9.4 TS1M6 | ||
Windows 7 Ultimate 32 bit | 9.4 TS1M4 | 9.4 TS1M6 | ||
Windows 7 Ultimate x64 | 9.4 TS1M4 | 9.4 TS1M6 | ||
64-bit Enabled AIX | 9.4 TS1M4 | 9.4 TS1M6 | ||
64-bit Enabled Solaris | 9.4 TS1M4 | 9.4 TS1M6 | ||
HP-UX IPF | 9.4 TS1M4 | 9.4 TS1M6 | ||
Linux for x64 | 9.4 TS1M4 | 9.4 TS1M6 | ||
Solaris for x64 | 9.4 TS1M4 | 9.4 TS1M6 | ||
SAS System | SAS/ACCESS Interface to Impala | Microsoft® Windows® for x64 | 9.4 TS1M4 | 9.4 TS1M7 |
Microsoft Windows 8 Enterprise 32-bit | 9.4 TS1M4 | 9.4 TS1M7 | ||
Microsoft Windows 8 Enterprise x64 | 9.4 TS1M4 | 9.4 TS1M7 | ||
Microsoft Windows 8 Pro 32-bit | 9.4 TS1M4 | 9.4 TS1M7 | ||
Microsoft Windows 8 Pro x64 | 9.4 TS1M4 | 9.4 TS1M7 | ||
Microsoft Windows 8.1 Enterprise 32-bit | 9.4 TS1M4 | 9.4 TS1M7 | ||
Microsoft Windows 8.1 Enterprise x64 | 9.4 TS1M4 | 9.4 TS1M7 | ||
Microsoft Windows 8.1 Pro 32-bit | 9.4 TS1M4 | 9.4 TS1M7 | ||
Microsoft Windows 8.1 Pro x64 | 9.4 TS1M4 | 9.4 TS1M7 | ||
Microsoft Windows 10 | 9.4 TS1M4 | 9.4 TS1M7 | ||
Microsoft Windows Server 2012 Datacenter | 9.4 TS1M4 | 9.4 TS1M7 | ||
Microsoft Windows Server 2012 R2 Datacenter | 9.4 TS1M4 | 9.4 TS1M7 | ||
Microsoft Windows Server 2012 R2 Std | 9.4 TS1M4 | 9.4 TS1M7 | ||
Microsoft Windows Server 2012 Std | 9.4 TS1M4 | 9.4 TS1M7 | ||
Windows 7 Enterprise 32 bit | 9.4 TS1M4 | 9.4 TS1M7 | ||
Windows 7 Enterprise x64 | 9.4 TS1M4 | 9.4 TS1M7 | ||
Windows 7 Home Premium 32 bit | 9.4 TS1M4 | 9.4 TS1M7 | ||
Windows 7 Home Premium x64 | 9.4 TS1M4 | 9.4 TS1M7 | ||
Windows 7 Professional 32 bit | 9.4 TS1M4 | 9.4 TS1M7 | ||
Windows 7 Professional x64 | 9.4 TS1M4 | 9.4 TS1M7 | ||
Windows 7 Ultimate 32 bit | 9.4 TS1M4 | 9.4 TS1M7 | ||
Windows 7 Ultimate x64 | 9.4 TS1M4 | 9.4 TS1M7 | ||
64-bit Enabled AIX | 9.4 TS1M4 | 9.4 TS1M7 | ||
Linux for x64 | 9.4 TS1M4 | 9.4 TS1M7 |
A fix for this issue for SAS/ACCESS Interface to SAP HANA 9.45 is available at:
https://tshf.sas.com/techsup/download/hotfix/HF2/H7M.html#63170A fix for this issue for SAS/ACCESS Interface to Impala 9.45 is available at:
https://tshf.sas.com/techsup/download/hotfix/HF2/H6D.html#63170A fix for this issue for SAS/ACCESS Interface to Vertica 9.4_M6 is available at:
https://tshf.sas.com/techsup/download/hotfix/HF2/F8S.html#63170A fix for this issue for SAS/ACCESS Interface to Greenplum 9.43 is available at:
https://tshf.sas.com/techsup/download/hotfix/HF2/F1P.html#63170A fix for this issue for SAS/ACCESS Interface to HAWQ 9.4_M3 is available at:
https://tshf.sas.com/techsup/download/hotfix/HF2/H7L.html#63170A fix for this issue for Base SAS 9.4_M5 is available at:
https://tshf.sas.com/techsup/download/hotfix/HF2/B6Q.html#63170A fix for this issue for SAS/ACCESS Interface to Amazon Redshift 9.42 is available at:
https://tshf.sas.com/techsup/download/hotfix/HF2/C7K.html#63170A fix for this issue for SAS/ACCESS Interface to PostgreSQL 9.4_M5 is available at:
https://tshf.sas.com/techsup/download/hotfix/HF2/D6F.html#63170A fix for this issue for SAS/ACCESS Interface to Netezza 9.42 is available at:
https://tshf.sas.com/techsup/download/hotfix/HF2/C9E.html#63170A fix for this issue for SAS/ACCESS Interface to Hadoop 9.45 is available at:
https://tshf.sas.com/techsup/download/hotfix/HF2/D7H.html#63170A fix for this issue for SAS/ACCESS Interface to DB2 9.42 is available at:
https://tshf.sas.com/techsup/download/hotfix/HF2/B7W.html#63170A fix for this issue for SAS/ACCESS Interface to Teradata 9.45 is available at:
https://tshf.sas.com/techsup/download/hotfix/HF2/D9H.html#63170A fix for this issue for SAS/ACCESS Interface to the PI System 9.43 is available at:
https://tshf.sas.com/techsup/download/hotfix/HF2/D3W.html#63170A fix for this issue for SAS/ACCESS Interface to PC Files 9.4_M5 is available at:
https://tshf.sas.com/techsup/download/hotfix/HF2/B7U.html#63170A fix for this issue for SAS/ACCESS Interface to Greenplum 9.42 is available at:
https://tshf.sas.com/techsup/download/hotfix/HF2/C9M.html#63170A fix for this issue for SAS/ACCESS Interface to OLE DB 9.4_M5 is available at:
https://tshf.sas.com/techsup/download/hotfix/HF2/D9C.html#63170A fix for this issue for SAS/ACCESS Interface to Impala 9.44 is available at:
https://tshf.sas.com/techsup/download/hotfix/HF2/B7E.html#63170A fix for this issue for SAS/ACCESS Interface to Microsoft SQL Server 9.43 is available at:
https://tshf.sas.com/techsup/download/hotfix/HF2/B7X.html#63170A fix for this issue for Base SAS 9.4_M4 is available at:
https://tshf.sas.com/techsup/download/hotfix/HF2/A3Z.html#63170A fix for this issue for SAS/ACCESS Interface to Amazon Redshift 9.41 is available at:
https://tshf.sas.com/techsup/download/hotfix/HF2/C7J.html#63170A fix for this issue for SAS/ACCESS Interface to PostgreSQL 9.4_M4 is available at:
https://tshf.sas.com/techsup/download/hotfix/HF2/D6E.html#63170A fix for this issue for SAS/ACCESS Interface to DB2 9.41 is available at:
https://tshf.sas.com/techsup/download/hotfix/HF2/B5Z.html#63170A fix for this issue for SAS/ACCESS Interface to Teradata 9.44 is available at:
https://tshf.sas.com/techsup/download/hotfix/HF2/C3N.html#63170A fix for this issue for SAS/ACCESS Interface to Greenplum 9.41 is available at:
https://tshf.sas.com/techsup/download/hotfix/HF2/D9M.html#63170A fix for this issue for SAS/ACCESS Interface to PC Files 9.4_M4 is available at:
https://tshf.sas.com/techsup/download/hotfix/HF2/A7I.html#63170Type: | Usage Note |
Priority: |
Date Modified: | 2019-01-31 09:11:04 |
Date Created: | 2018-11-05 10:49:24 |