BookmarkSubscribeRSS Feed
bharath86
Obsidian | Level 7
options validvarname=any;
libname xl XLSX "book1.xlsx";
data test;
set xl.xyz;
run;
libname xl clear;

@Kurt_Bremser 

I get this error when I run the above program, how can I make sure it reads the complete string irrespective of length. I have a string upto 300 characters in a variable. 

 

also attached  a test file for the code.

WARNING: Some character data was lost during transcoding in column:......

2 REPLIES 2
Tom
Super User Tom
Super User

What encoding is your SAS session using?

Check the value of the automatic macro variable SYSENCODING.

bharath86
Obsidian | Level 7

Hi Its,

 

UTF-8

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

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!

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
  • 2 replies
  • 989 views
  • 0 likes
  • 2 in conversation