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 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 546 views
  • 0 likes
  • 2 in conversation