<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: correcting a string with quotes in it in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/correcting-a-string-with-quotes-in-it/m-p/609426#M17892</link>
    <description>&lt;P&gt;There is no need to get the macro processor involved. The SAS language already has methods to represent strings with quotes in them.&lt;/P&gt;</description>
    <pubDate>Wed, 04 Dec 2019 15:53:20 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2019-12-04T15:53:20Z</dc:date>
    <item>
      <title>correcting a string with quotes in it</title>
      <link>https://communities.sas.com/t5/New-SAS-User/correcting-a-string-with-quotes-in-it/m-p/609410#M17883</link>
      <description>&lt;P&gt;How do I get this code to work?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT style="background-color: #ffffff;"&gt;if callfreqothc=""sick Person"" then callfreqothc="Sick Person";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; __&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 49&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ____&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 388&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 76&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT style="background-color: #ffffff;"&gt;This is the message I'm getting in the log:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT style="background-color: #ffffff;"&gt;&lt;BR /&gt;NOTE 49-169: The meaning of an identifier after a quoted string might change in &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a future SAS release.&amp;nbsp; Inserting white space between a quoted &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT style="background-color: #ffffff;"&gt;Thanks!&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string and the succeeding identifier is recommended.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 15:10:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/correcting-a-string-with-quotes-in-it/m-p/609410#M17883</guid>
      <dc:creator>hein68</dc:creator>
      <dc:date>2019-12-04T15:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: correcting a string with quotes in it</title>
      <link>https://communities.sas.com/t5/New-SAS-User/correcting-a-string-with-quotes-in-it/m-p/609412#M17885</link>
      <description>&lt;P&gt;Use the dequote() function:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
input string $20.;
n_string = dequote(string);
datalines;
"sick Person"
;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Dec 2019 15:16:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/correcting-a-string-with-quotes-in-it/m-p/609412#M17885</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-12-04T15:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: correcting a string with quotes in it</title>
      <link>https://communities.sas.com/t5/New-SAS-User/correcting-a-string-with-quotes-in-it/m-p/609413#M17886</link>
      <description>&lt;P&gt;If you are familiar with the macro language you could use quoting functions to mask the inner quotes ... the following should work:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;  
  callfreqothc='"sick Person"';
  if callfreqothc="%str(%"sick Person%")" then callfreqothc="Sick Person";
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The %str() function masks characters that you don't want their meaning interpreted. This needs to be supplemented with individual % signs just before each quote you want to mask&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 15:17:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/correcting-a-string-with-quotes-in-it/m-p/609413#M17886</guid>
      <dc:creator>Lucy1</dc:creator>
      <dc:date>2019-12-04T15:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: correcting a string with quotes in it</title>
      <link>https://communities.sas.com/t5/New-SAS-User/correcting-a-string-with-quotes-in-it/m-p/609416#M17888</link>
      <description>use the unquote function.  Example:&lt;BR /&gt;&lt;BR /&gt;%qsysfunc(compress(&amp;amp;Grouplist,%str(%")))</description>
      <pubDate>Wed, 04 Dec 2019 15:28:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/correcting-a-string-with-quotes-in-it/m-p/609416#M17888</guid>
      <dc:creator>tomrvincent</dc:creator>
      <dc:date>2019-12-04T15:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: correcting a string with quotes in it</title>
      <link>https://communities.sas.com/t5/New-SAS-User/correcting-a-string-with-quotes-in-it/m-p/609419#M17890</link>
      <description>&lt;P&gt;You can use different type of quotes on the outside.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if callfreqothc='"sick Person"' then callfreqothc="Sick Person";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or double any internal quote characters that match the outside quote characters.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if callfreqothc="""sick Person""" then callfreqothc="Sick Person";&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Dec 2019 15:35:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/correcting-a-string-with-quotes-in-it/m-p/609419#M17890</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-12-04T15:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: correcting a string with quotes in it</title>
      <link>https://communities.sas.com/t5/New-SAS-User/correcting-a-string-with-quotes-in-it/m-p/609420#M17891</link>
      <description>&lt;P&gt;Or a bquote instead&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if callfreqothc="%bquote("sick Person")" then callfreqothc="Sick Person";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or something fancy with informat and function&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;  callfreqothc=propcase(input(callfreqothc, $quote15.));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 15:47:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/correcting-a-string-with-quotes-in-it/m-p/609420#M17891</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-12-04T15:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: correcting a string with quotes in it</title>
      <link>https://communities.sas.com/t5/New-SAS-User/correcting-a-string-with-quotes-in-it/m-p/609426#M17892</link>
      <description>&lt;P&gt;There is no need to get the macro processor involved. The SAS language already has methods to represent strings with quotes in them.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 15:53:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/correcting-a-string-with-quotes-in-it/m-p/609426#M17892</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-12-04T15:53:20Z</dc:date>
    </item>
  </channel>
</rss>

