How to escape the ' character in sas?
sas
Solution
Use the percent symbol to escape the single quote:
'Hello %'n Hi'
Problem
I have this variable in sas called `saying`. This variable contains the value `Hello 'n Hi` I have written the following code ``` data work.queryData; set work.actualData; if saying='Hello 'n Hi' then saying2='Hello and hi'; run; ``` How do I escape the `'` character in sas?