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;

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
  • 813 views
  • 0 likes
  • 3 in conversation