<?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: How do I remove quotation marks from character strings? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-do-I-remove-quotation-marks-from-character-strings/m-p/463704#M70484</link>
    <description>I ended up using word = compress(word,"""'");&lt;BR /&gt;as it said the call dequote function could not be found, and similairly if I use word = dequote(word); then it removed leading quotes, but not closing quotes.</description>
    <pubDate>Mon, 21 May 2018 05:11:28 GMT</pubDate>
    <dc:creator>GenDemo</dc:creator>
    <dc:date>2018-05-21T05:11:28Z</dc:date>
    <item>
      <title>How do I remove quotation marks from character strings?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-do-I-remove-quotation-marks-from-character-strings/m-p/71886#M20783</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I thought that this would be a fairly basic problem but I'm struggling for an answer.&lt;BR /&gt;
&lt;BR /&gt;
I'm trying to remove single and double quote marks from a character variable.&lt;BR /&gt;
&lt;BR /&gt;
The two statements I'm using to try do this are COMPRESS and TRANWRD. Both of these however, require you to put the character you want to remove inside quotation marks e.g.&lt;BR /&gt;
&lt;BR /&gt;
COMPRESS(character-variable,''') ;&lt;BR /&gt;
TRANWRD(character-variable,''','') ;&lt;BR /&gt;
&lt;BR /&gt;
This obvously causes problems as the quotation mark I want to remove closes the second part of each statement.&lt;BR /&gt;
&lt;BR /&gt;
Is there any way to get around this or another way of doing it?&lt;BR /&gt;
&lt;BR /&gt;
Cheers,&lt;BR /&gt;
&lt;BR /&gt;
Fat Captain.</description>
      <pubDate>Tue, 14 Sep 2010 12:34:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-do-I-remove-quotation-marks-from-character-strings/m-p/71886#M20783</guid>
      <dc:creator>FatCaptain</dc:creator>
      <dc:date>2010-09-14T12:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove quotation marks from character strings?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-do-I-remove-quotation-marks-from-character-strings/m-p/71887#M20784</link>
      <description>Inside use two.  See example.&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
"""'"&lt;BR /&gt;
or&lt;BR /&gt;
&lt;BR /&gt;
'''"'&lt;BR /&gt;
&lt;BR /&gt;
[/pre]</description>
      <pubDate>Tue, 14 Sep 2010 13:57:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-do-I-remove-quotation-marks-from-character-strings/m-p/71887#M20784</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2010-09-14T13:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove quotation marks from character strings?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-do-I-remove-quotation-marks-from-character-strings/m-p/71888#M20785</link>
      <description>Cheers,&lt;BR /&gt;
&lt;BR /&gt;
Thanks for this.</description>
      <pubDate>Tue, 14 Sep 2010 14:45:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-do-I-remove-quotation-marks-from-character-strings/m-p/71888#M20785</guid>
      <dc:creator>FatCaptain</dc:creator>
      <dc:date>2010-09-14T14:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove quotation marks from character strings?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-do-I-remove-quotation-marks-from-character-strings/m-p/299030#M60388</link>
      <description>&lt;P&gt;Another solution is the DEQUOTE function. Call dequote(variable) if the first character is a single or double quote character. It will also remove any text after the closing/right quote(s). [&lt;A href="http://stackoverflow.com/questions/33090797/removing-single-quotation-marks-from-a-string-in-sas" target="_self"&gt;ref&lt;/A&gt;]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know this is an older post, but it was one of the first results when searching this, so I figured including this solution here would be a good idea.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2016 20:07:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-do-I-remove-quotation-marks-from-character-strings/m-p/299030#M60388</guid>
      <dc:creator>paulkaefer</dc:creator>
      <dc:date>2016-09-16T20:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove quotation marks from character strings?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-do-I-remove-quotation-marks-from-character-strings/m-p/463704#M70484</link>
      <description>I ended up using word = compress(word,"""'");&lt;BR /&gt;as it said the call dequote function could not be found, and similairly if I use word = dequote(word); then it removed leading quotes, but not closing quotes.</description>
      <pubDate>Mon, 21 May 2018 05:11:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-do-I-remove-quotation-marks-from-character-strings/m-p/463704#M70484</guid>
      <dc:creator>GenDemo</dc:creator>
      <dc:date>2018-05-21T05:11:28Z</dc:date>
    </item>
  </channel>
</rss>

