BookmarkSubscribeRSS Feed
jozumhannes
Fluorite | Level 6

Hi everyone,

We are explicitly setting the DBCLIENT_MAX_BYTES=1 option in the LIBNAME statement when accessing Snowflake, since we manage the VARCHAR lengths manually on the Snowflake side and ensure they are large enough. This approach works fine in general.

However, when using the Table Loader transformation in SAS Data Integration Studio, we encounter the following error:

ERROR: Unable to transcode data to/from UCS-2 encoding.

The issue disappears when we set DBCLIENT_MAX_BYTES=2 instead.
Has anyone else experienced this behavior? Is this expected, or is there a recommended way to use DBCLIENT_MAX_BYTES=1 safely with Table Loader?

Thanks in advance!

1 REPLY 1
Tom
Super User Tom
Super User

What are you connecting to that is using UCS-2 encoding?

 

And no, you probably cannot force character strings to be only one byte long when each character is represented by two bytes.

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

Get Started with SAS Information Catalog in SAS Viya

SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 305 views
  • 0 likes
  • 2 in conversation