BookmarkSubscribeRSS Feed
NJGIRL
Obsidian | Level 7

Hello All!

I am trying to read in an excel spreadsheet -- I am getting these 'funny' characters , which I believe is caused by ENTER key (?) . I have tried using the option ENCODING=Yes and SAS server UTF8 , which usually works, however this time I am stumped!

 

I have attached an example of my results. Thank you.

2 REPLIES 2
ChrisNZ
Tourmaline | Level 20

Many people will not look at MS Office files.

Tom
Super User Tom
Super User

Those don't look like either CR or LF, which is what a line break would look like.

Ask SAS to show you want characters they are by using the $HEX format.

data _null_;
  set have (obs=5);
  put item_desc $hex.;
run;

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
  • 1014 views
  • 1 like
  • 3 in conversation