BookmarkSubscribeRSS Feed
angeliquec
Quartz | Level 8

We are currently importing Excel 2007 files to SAS using SAS proc import code. We found that SAS detects hidden characters and translates these to a question mark after import. May we know how can we make SAS not detect these hidden characters and import the data as is?

For example, this field has this value in Excel:

Its not going to happen.

When it was converted to SAS, it became:

It?s not going to happen.

How can we get rid of the question mark?

1 REPLY 1
Kurt_Bremser
Super User

Export into .csv from Excel and use a hex-capable editor to inspect the data. This might give you a clue what's happening.

Most probably you have a difficulty with UTF vs single-byte representation.

A common single quote (which I would expect to be there) will always translate properly, so I guess someone used an extended character where it is not necessary.

Programmer's heaven is a place where English is the only language, and only 96 characters/symbols are needed.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 1 reply
  • 899 views
  • 0 likes
  • 2 in conversation