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.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

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