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;

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


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