BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Yasutomi
Calcite | Level 5

Dear Members, Starting with SAS 9.4M9, when using SAS/ACCESS Interface to Snowflake 9.48, selecting Snowflake columns that contain Japanese characters results in the error “ERROR: Unable to transcode to UCS-2 encoding.”

If we change SAS’s encoding to UTF-8, the data is displayed correctly; however, we want to work with Snowflake while keeping SAS in Shift-JIS.

 

SAS:SAS9.4M9

Interface: SAS/ACCESS Interface to Snowflake 9.48

OS: Windows Server 2022

SAS encoding: Shift-JIS

 

'''sas

libname <name> snow

  server="<URL>"

  database="<DB name>"

  schema="<SCHEMA name>"

  warehouse="<WAREHOUSE name>"

  user="<USER name>"

  conopts="AUTHENTICATOR=SNOWFLAKE_JWT;

           PRIV_KEY_FILE=<FILE name>;

           PRIV_KEY_FILE_PWD=<PWD>;

           TRACING=4;";

 

proc print data=<DB name>.<TABLE name>;

run;

'''

Does anyone have a good idea for another option to solve this problem?

Thank you.

1 ACCEPTED SOLUTION
1 REPLY 1

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.

Explore Now →
How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 1 reply
  • 242 views
  • 3 likes
  • 2 in conversation