Usage Note 19713: Garbage characters display in table names when you use SAS/ACCESS® Interface to Microsoft SQL Server in the UNIX environment
Table names are displayed using garbage characters when you use SAS/ACCESS Interface to Microsoft SQL Server under Unix versus when you use SAS/ACCESS® Interface to ODBC in the Windows environment.
For example, the following LIBNAME statement(with SQLSVR or ODBC and engine) and DATASETS procedure display the table name correctly under Windows. However, under UNIX, the table names appear as garbage characters.
libname test SQLSVR/ODBC user=userid pw=password dsn=datasource_name
schema=dbo preserve_col_names=yes preserve_tab_names=yes;
proc datasets lib=test;
|
Under UNIX, the DataDirect ODBC option IANAAppCodePage=38 needs to be added to the
ODBC.INI under the datasource they are using.
Here's an example of how to update the DataDirect options in the
ODBC.INI file.
table cellpadding="5" cellspacing="2" border="0">
[datasource_name]
Driver=/sas/sasv9/mssql/lib/S0msss21.so
Description=DataDirect 5.1 SQL Server Wire Protocol
Address=10.10.77.232,1433
AnsiNPW=Yes
Database=GWSaisHMC
LogonID=userid
Password=password
QuotedId=No
IANAAppCodePage=38
|
The IANAAppCodePage value tells the driver which code page SAS or another application is running in. The 38 corresponds to EUC_KR.
Operating System and Release Information
| SAS System | SAS/ACCESS Interface to ODBC | 64-bit Enabled HP-UX | 9.1 TS1M3 | |
| 64-bit Enabled Solaris | 9.1 TS1M3 | |
| Linux | 9.1 TS1M3 | |
| 64-bit Enabled AIX | 9.1 TS1M3 | |
*
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: | Usage Note |
| Priority: | |
| Topic: | SAS Reference ==> LIBNAME Engines Third Party ==> Information Exchange ==> ODBC (Open Database Connectivity)
|
| Date Modified: | 2008-05-05 14:03:28 |
| Date Created: | 2007-03-09 13:45:27 |