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

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

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
  • 1499 views
  • 4 likes
  • 4 in conversation