<?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: compress single and double quote in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/compress-single-and-double-quote/m-p/63400#M18023</link>
    <description>thanks a lot kevin! got it now</description>
    <pubDate>Thu, 13 Aug 2009 00:13:45 GMT</pubDate>
    <dc:creator>milts</dc:creator>
    <dc:date>2009-08-13T00:13:45Z</dc:date>
    <item>
      <title>compress single and double quote</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/compress-single-and-double-quote/m-p/63398#M18021</link>
      <description>hi all,&lt;BR /&gt;
&lt;BR /&gt;
let's say i have a value '00012345&lt;BR /&gt;
&lt;BR /&gt;
how can i remove the single quote or double quote?&lt;BR /&gt;
&lt;BR /&gt;
if i use compress i'll get a compilation error since syntax for compress is&lt;BR /&gt;
compress(var,"&lt;TO be="" removed=""&gt;");&lt;BR /&gt;
&lt;BR /&gt;
it is enclosed in double quotes so when you put a single quote and a double quote as your arguements, you wont be able to run the code. hope i was able to explain it correctly&lt;BR /&gt;
&lt;BR /&gt;
are there any ways to remove quotes? &lt;BR /&gt;
&lt;BR /&gt;
thanks in advance!&lt;/TO&gt;</description>
      <pubDate>Wed, 12 Aug 2009 02:36:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/compress-single-and-double-quote/m-p/63398#M18021</guid>
      <dc:creator>milts</dc:creator>
      <dc:date>2009-08-12T02:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: compress single and double quote</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/compress-single-and-double-quote/m-p/63399#M18022</link>
      <description>The function COMPRESS should be OK.&lt;BR /&gt;
&lt;BR /&gt;
Please try the code below:&lt;BR /&gt;
data _null_;&lt;BR /&gt;
  a = "'00012345"""; *string with single quote and double quote;&lt;BR /&gt;
  put a=;&lt;BR /&gt;
  b = compress(a, "'""");&lt;BR /&gt;
  put b=;&lt;BR /&gt;
run;</description>
      <pubDate>Wed, 12 Aug 2009 04:44:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/compress-single-and-double-quote/m-p/63399#M18022</guid>
      <dc:creator>KevinQin</dc:creator>
      <dc:date>2009-08-12T04:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: compress single and double quote</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/compress-single-and-double-quote/m-p/63400#M18023</link>
      <description>thanks a lot kevin! got it now</description>
      <pubDate>Thu, 13 Aug 2009 00:13:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/compress-single-and-double-quote/m-p/63400#M18023</guid>
      <dc:creator>milts</dc:creator>
      <dc:date>2009-08-13T00:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: compress single and double quote</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/compress-single-and-double-quote/m-p/63401#M18024</link>
      <description>There is also a third parameter to the compress function that can remove all characters of a certain type. For example, 'p' removes all punctuation characters.&lt;BR /&gt;
&lt;BR /&gt;
data test;&lt;BR /&gt;
	x = "''x''";&lt;BR /&gt;
	y = '""y""';&lt;BR /&gt;
	z = cats(x, y);&lt;BR /&gt;
	w = compress(z,,'p');&lt;BR /&gt;
run;&lt;BR /&gt;
proc print data=test;&lt;BR /&gt;
run;</description>
      <pubDate>Fri, 14 Aug 2009 17:21:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/compress-single-and-double-quote/m-p/63401#M18024</guid>
      <dc:creator>sfleming</dc:creator>
      <dc:date>2009-08-14T17:21:55Z</dc:date>
    </item>
  </channel>
</rss>

