BookmarkSubscribeRSS Feed
AlanCGIC
Calcite | Level 5

I use the following libname statement in EG 8.3 when connecting to a schema  (ST_DIST) in Azure Synapse:

 

libname ST_DIST SQLSVR Datasrc=Synapse_PROD_Pool01 SCHEMA=ST_DIST readbuff=32767 insertbuff=32767 User=&azsynusr. Password="&azsynpss" ;

 

When I browse the tables, there are invalid characters instead of trademark symbols and emdashes. 

 

AlanCGIC_0-1749735562234.png

AlanCGIC_1-1749735937956.png

 

The collation field for the Azure Synapse tables is set to SQL_Latin1_General_CP1_CI_AS

 

What do I need to do in SAS to fix this problem?

2 REPLIES 2
SASKiwi
PROC Star

This is likely caused by an encoding mismatch between Synapse and SAS. I would start by checking the encoding of your SAS session. Please run this and post the results:

proc options option = encoding;
run;
AlanCGIC
Calcite | Level 5

Here is the current encoding for SAS:

 

ENCODING=LATIN1

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1051 views
  • 0 likes
  • 2 in conversation