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