SAS Programming

DATA Step, Macro, Functions and more
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-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

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