BookmarkSubscribeRSS Feed
vdaher
Calcite | Level 5

I have a report that is formatted wide with special charater, *, ≥ and  ≤.  The asterik imports fine but not the ≥ and  ≤, these symbols get imported as a ?.

 

I need to import this file so I can transform the data from wide to long format using Transpose.  I have to do this every year for three different large files, so the the long format can be published for app developers.

 

Each instance is unique in that if its ≥95%, there will never be a 95% or a ≤95% etc. A global replace of ?95% with ≥95% would work, but TRANWRD does not like the ≥.

 

I have been doing the replace in Excell, but would like to find a code solution, since this will be an ongoing task.

 

Here are the fields that are having an issue and what they should be:

?95% to ≥95%

?5% to ≤5%

?98% to ≥98%

?2% to ≤2%

?99% to ≥99%

?1% to ≤1%

2 REPLIES 2
Vince_SAS
Rhodochrosite | Level 12

Take a look at this message to see if the solution helps you:

 

Import data from MS access/Excel while retaining special characters

https://communities.sas.com/t5/Base-SAS-Programming/Import-data-from-MS-access-Excel-while-retaining...

 

The SAS server used by Enterprise Guide must be started with Unicode support.

 

Vince DelGobbo

SAS R&D

Tom
Super User Tom
Super User

Normal LATIN1 encoding does not have a single byte mapping for those glyphs.

 

Change SAS servers to one that is  using UTF8 encoding so that SAS can store those special characters.

 

 

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 2159 views
  • 0 likes
  • 3 in conversation