BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
dennis_oz
Quartz | Level 8

Hi please can anybody suggest how to remove this unwanted character .

 

Thanks .

 

 

dennis_oz_0-1626250318414.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
ErikLund_Jensen
Rhodochrosite | Level 12

Hi @dennis_oz 

 

Try translate('-','96'x)

View solution in original post

6 REPLIES 6
dennis_oz
Quartz | Level 8

 

dennis_oz_0-1626252426398.png

 

Hi please see the attached data .

 

there is a UTF-8  code  i.e x96 . tis needs to be replaced with  "-" 

 

so o/p should be  "Idameneo - Robina"

ErikLund_Jensen
Rhodochrosite | Level 12

Hi @dennis_oz 

 

Try translate('-','96'x)

dennis_oz
Quartz | Level 8
Thank you sooo much !!!
andreas_lds
Jade | Level 19

Looks like an encoding problem, three options to solve it:

  1. change the encoding of you sas session
  2. at the encoding-option to the infile-statement when reading the file
  3. change the encoding of the file before it is read

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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
  • 6 replies
  • 2063 views
  • 4 likes
  • 4 in conversation