SAS Programming

DATA Step, Macro, Functions and more
BookmarkSubscribeRSS Feed
sangavis37
Obsidian | Level 7

When our customer tries to read an sql database that has latin1 characters, in sas (with utf-8 session encoding), it displays question mark in place of those characters. I suggested this https://communities.sas.com/t5/SAS-Communities-Library/Change-Encoding-using-SAS-Enterprise-Guide-Wi... but it did not help. Anyone has any idea how we can resolve this? Thank you in advance.

 

data xxxx;
  set xxxx;
  where xx like '%ë%';
run;

3 REPLIES 3
Ksharp
Super User
Change your SAS encoding to be the same with sql database. Like : WLATIN1
Patrick
Opal | Level 21

You could try if the proposed approach from the following discussion works for you. https://stackoverflow.com/questions/58526418/reading-oracle-data-from-sas-in-a-utf-8-session-charact... 

Patrick_0-1702028265002.png

 

sangavis37
Obsidian | Level 7

They are using oledb to connect and encoding= option does not seem to available for oledb

sas-innovate-white.png

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

Register 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
  • 3 replies
  • 1244 views
  • 0 likes
  • 3 in conversation