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

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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