BookmarkSubscribeRSS Feed
Q1983
Lapis Lazuli | Level 10

Please forgive me but I cannot replicate the error I am getting.  This is a general question

 

processing1 = 'Infosys – Distributed'

 

this is a snippet of code used in a dataset.  In the dataset processing1 shows the value Infosys - Distributed.

However in ODS output the dash is replaced with ?

It appears ODS tagset ExcelXP is converting the dash to a ?.   I realized I did not provide a sample however in general is there a way to get sas to show the dash instead?

2 REPLIES 2
Kurt_Bremser
Super User

Make sure that the dash is a real dash and not some funny UTF character you got from a word processor.

Also try ODS EXCEL; TAGSETS.EXCELXP creates XML text files, which grows much larger than the xlsx (compressed archive of XML files) created by ODS EXCEL. And it might deal correctly with UTF characters.

Kurt_Bremser
Super User
processing1 = 'Infosys – Distributed'
processing1 = 'Infosys - Distributed'

The first line is from your post, in the second line I typed the dash in manually; by looking closely, you can see the difference.

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
  • 1577 views
  • 1 like
  • 2 in conversation