<?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 to take off double quotes from character variable while exporting it into CSV file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-take-off-double-quotes-from-character-variable-while/m-p/467964#M119485</link>
    <description>&lt;P&gt;Function dequote() does what you want.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But as said above, what you want is not what you need.&lt;/P&gt;</description>
    <pubDate>Wed, 06 Jun 2018 05:17:29 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2018-06-06T05:17:29Z</dc:date>
    <item>
      <title>how to take off double quotes from character variable while exporting it into CSV file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-take-off-double-quotes-from-character-variable-while/m-p/467954#M119482</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;When I&amp;nbsp; export my sas dataset to csv file. I notice that for character variable containing Address string automatically comes up with double quotes. While some records have quotes rest of the addresses don't have quotes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;address&lt;/P&gt;&lt;P&gt;" Unit 4, 103 apartment name"&lt;/P&gt;&lt;P&gt;2/3&amp;nbsp;some road name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want the addresses without quotes. I use Export procedure to get the dataset into CSV file. I wonder if there is any way&amp;nbsp; , i can avoid getting quotes in CSV file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just to be clearer my sas dataset doesn't contain single or double quotes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2018 04:08:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-take-off-double-quotes-from-character-variable-while/m-p/467954#M119482</guid>
      <dc:creator>sas_learnsups</dc:creator>
      <dc:date>2018-06-06T04:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to take off double quotes from character variable while exporting it into CSV file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-take-off-double-quotes-from-character-variable-while/m-p/467955#M119483</link>
      <description>&lt;P&gt;Look at that address. It has a comma embedded, so if you export it like that to a CSV, how do you know where the delimiter is?&lt;/P&gt;
&lt;P&gt;That row will have an extra comma which will cause all kinds of issues, so the convention is to add quotes and the comma in the quotes is ignored. Don't remove them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you really, really want to, you can use PUT statements instead which allows you to control it explicitly.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/194430"&gt;@sas_learnsups&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;When I&amp;nbsp; export my sas dataset to csv file. I notice that for character variable containing Address string automatically comes up with double quotes. While some records have quotes rest of the addresses don't have quotes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;P&gt;address&lt;/P&gt;
&lt;P&gt;" Unit 4, 103 apartment name"&lt;/P&gt;
&lt;P&gt;2/3&amp;nbsp;some road name&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want the addresses without quotes. I use Export procedure to get the dataset into CSV file. I wonder if there is any way&amp;nbsp; , i can avoid getting quotes in CSV file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just to be clearer my sas dataset doesn't contain single or double quotes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2018 04:16:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-take-off-double-quotes-from-character-variable-while/m-p/467955#M119483</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-06-06T04:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to take off double quotes from character variable while exporting it into CSV file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-take-off-double-quotes-from-character-variable-while/m-p/467957#M119484</link>
      <description>ohh! I get that now! Thanks for quick response.</description>
      <pubDate>Wed, 06 Jun 2018 04:23:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-take-off-double-quotes-from-character-variable-while/m-p/467957#M119484</guid>
      <dc:creator>sas_learnsups</dc:creator>
      <dc:date>2018-06-06T04:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to take off double quotes from character variable while exporting it into CSV file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-take-off-double-quotes-from-character-variable-while/m-p/467964#M119485</link>
      <description>&lt;P&gt;Function dequote() does what you want.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But as said above, what you want is not what you need.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2018 05:17:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-take-off-double-quotes-from-character-variable-while/m-p/467964#M119485</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-06-06T05:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to take off double quotes from character variable while exporting it into CSV file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-take-off-double-quotes-from-character-variable-while/m-p/467966#M119487</link>
      <description>Thanks Chris, I got the point.</description>
      <pubDate>Wed, 06 Jun 2018 05:19:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-take-off-double-quotes-from-character-variable-while/m-p/467966#M119487</guid>
      <dc:creator>sas_learnsups</dc:creator>
      <dc:date>2018-06-06T05:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to take off double quotes from character variable while exporting it into CSV file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-take-off-double-quotes-from-character-variable-while/m-p/468062#M119521</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/194430"&gt;@sas_learnsups&lt;/a&gt;&amp;nbsp; Sir/Madam, It would be more encouraging if you could rather&amp;nbsp; mark&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;as the accepted solution for the very intuitive detailed reasoning. We then community(you included) feel encouraged with such responses to delve more and more with interesting responses. Just a thought. Sorry for the bother. Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2018 14:16:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-take-off-double-quotes-from-character-variable-while/m-p/468062#M119521</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-06-06T14:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to take off double quotes from character variable while exporting it into CSV file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-take-off-double-quotes-from-character-variable-while/m-p/468248#M119577</link>
      <description>Well I thought i marked her response as Solution but my reponses got marked. It wasnt intentional. Thanks though for pointing it out to me.</description>
      <pubDate>Thu, 07 Jun 2018 04:45:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-take-off-double-quotes-from-character-variable-while/m-p/468248#M119577</guid>
      <dc:creator>sas_learnsups</dc:creator>
      <dc:date>2018-06-07T04:45:06Z</dc:date>
    </item>
  </channel>
</rss>

