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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

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