r********e 发帖数: 1686 | 1 When I need to find the observation with the string 'He's not' , I used
where Variable contains 'He's not'
but it's not working because of the single quotation mark within the string.
I also tried " He's not", it's still incorrect.
How am I supposed to deal with it?
Thanks!! | N********a 发帖数: 248 | 2 %quote或者%str
%let string=%quote(he's not) | s******y 发帖数: 352 | 3 as simple as double the quotes:
where Variable contains 'He''s not' ;
string.
【在 r********e 的大作中提到】 : When I need to find the observation with the string 'He's not' , I used : where Variable contains 'He's not' : but it's not working because of the single quotation mark within the string. : I also tried " He's not", it's still incorrect. : How am I supposed to deal with it? : Thanks!!
|
|