If you save your Excel file as Unicode text, you should also use unicode to read it into SAS:
Filename Textfile '<path>' ENCODING='UTF16B';
data want;
infile textfile;
input....But I do not quite understand that only some characters get converted to two bytes - according to the SAS documentation, the UTF-16 encodings store all characters as two bytes. Are you quite sure that you are not using UTF-8?
FWIW I didn't find a UTF-16 save as option in my Excel 365, only UTF-8 and UTF-BigEndian
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.