<?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: Porblem with unmatched double quotes using proc export in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Porblem-with-unmatched-double-quotes-using-proc-export/m-p/331167#M62688</link>
    <description>&lt;P&gt;If your data contains ", then the output file needs to have more quotes to indicate that the overall string starts from and finishes at. &amp;nbsp;E.g.&lt;/P&gt;
&lt;P&gt;Abcde"efg&lt;/P&gt;
&lt;P&gt;If I put one set of quotes round this:&lt;/P&gt;
&lt;P&gt;"Abcd"efg"&lt;/P&gt;
&lt;P&gt;Thats an invalid string, so need to add more quotes:&lt;/P&gt;
&lt;P&gt;""Abcd"efg""&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basically if you want a file to look how you want, I would write the datastep to output it. &amp;nbsp;Also check this post:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Procedures/Proc-Export-adding-extra-quotation-marks/td-p/90021" target="_blank"&gt;https://communities.sas.com/t5/SAS-Procedures/Proc-Export-adding-extra-quotation-marks/td-p/90021&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Feb 2017 14:31:03 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2017-02-09T14:31:03Z</dc:date>
    <item>
      <title>Porblem with unmatched double quotes using proc export</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Porblem-with-unmatched-double-quotes-using-proc-export/m-p/331156#M62687</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using proc export to export data into .csv file and facing some problem. In my data " is present.When I am exporting it using proc export , it is getting repeated 4 times and " becomes """". &amp;nbsp;I have seen some solutions on this but unfortunately I need to fix this using proc export only. This happens only with " (unmatched double quotes). All other special characters like&amp;nbsp;@,#,$ are exported correctly. I am using SAS 9.2 EG on Unix environment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone helps me why proc export behaves like this and what is a solution for this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;AD.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 14:07:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Porblem-with-unmatched-double-quotes-using-proc-export/m-p/331156#M62687</guid>
      <dc:creator>ad123123</dc:creator>
      <dc:date>2017-02-09T14:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: Porblem with unmatched double quotes using proc export</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Porblem-with-unmatched-double-quotes-using-proc-export/m-p/331167#M62688</link>
      <description>&lt;P&gt;If your data contains ", then the output file needs to have more quotes to indicate that the overall string starts from and finishes at. &amp;nbsp;E.g.&lt;/P&gt;
&lt;P&gt;Abcde"efg&lt;/P&gt;
&lt;P&gt;If I put one set of quotes round this:&lt;/P&gt;
&lt;P&gt;"Abcd"efg"&lt;/P&gt;
&lt;P&gt;Thats an invalid string, so need to add more quotes:&lt;/P&gt;
&lt;P&gt;""Abcd"efg""&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basically if you want a file to look how you want, I would write the datastep to output it. &amp;nbsp;Also check this post:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Procedures/Proc-Export-adding-extra-quotation-marks/td-p/90021" target="_blank"&gt;https://communities.sas.com/t5/SAS-Procedures/Proc-Export-adding-extra-quotation-marks/td-p/90021&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 14:31:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Porblem-with-unmatched-double-quotes-using-proc-export/m-p/331167#M62688</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-02-09T14:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: Porblem with unmatched double quotes using proc export</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Porblem-with-unmatched-double-quotes-using-proc-export/m-p/331209#M62695</link>
      <description>&lt;P&gt;I have had to read files that some creatively modified the rules for quotes for delimited text such that I had values like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;column1, "Some text with, and&amp;nbsp;" in the middle", 45.3, column4 text.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And those break almost every standard import tool.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Manually write a couple of lines similar to what I show (or you seem to want). Then use proc import to read the file. Or import into Access or some other data base as a CSV and see what you get.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One might ask what you will do with the resulting file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 16:03:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Porblem-with-unmatched-double-quotes-using-proc-export/m-p/331209#M62695</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-02-09T16:03:45Z</dc:date>
    </item>
  </channel>
</rss>

