BookmarkSubscribeRSS Feed
BarryP
Quartz | Level 8

I have a list of maybe a couple thousand customers.  Some of them contain upside down question marks in their name.  How would I identify these accounts?

data test;
   set test;
   if find(name,'Upside Down Question Mark') ge 1;
run;

 I assume I would use that, but I have no idea how to put an upside down question mark in the quotes. 

2 REPLIES 2
ballardw
Super User

If you open a SAS data set and copy the character from one of the variables try pasting that into the code.

 

No guarantee but I have had this work a few times for some encodings and has the advantage of being relatively easy if it works.

 

novinosrin
Tourmaline | Level 20
data want;
char="fsdfdgbv¿42553";
position=find(char,"¿");
run;

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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
  • 2 replies
  • 1140 views
  • 0 likes
  • 3 in conversation