<?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 Proc export with labels removing quotes in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-export-with-labels-removing-quotes/m-p/636808#M189242</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have a problem with proc export, labels and quotes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to export a file with a ":" inside the header field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now i'm using the classic proc export:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;PROC EXPORT DATA= example&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;OUTFILE= "path\example.csv"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;DBMS=DLM LABEL REPLACE;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;DELIMITER='2C'x; &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;PUTNAMES=YES;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;RUN;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And this is what i have:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"example:1" , "example:2"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just need: example:1 , example:2 without quotes but with the " : " inside the name of the field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can i do in order to export properly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;</description>
    <pubDate>Thu, 02 Apr 2020 09:24:53 GMT</pubDate>
    <dc:creator>Tiri6</dc:creator>
    <dc:date>2020-04-02T09:24:53Z</dc:date>
    <item>
      <title>Proc export with labels removing quotes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-export-with-labels-removing-quotes/m-p/636808#M189242</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have a problem with proc export, labels and quotes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to export a file with a ":" inside the header field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now i'm using the classic proc export:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;PROC EXPORT DATA= example&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;OUTFILE= "path\example.csv"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;DBMS=DLM LABEL REPLACE;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;DELIMITER='2C'x; &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;PUTNAMES=YES;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;RUN;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And this is what i have:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"example:1" , "example:2"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just need: example:1 , example:2 without quotes but with the " : " inside the name of the field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can i do in order to export properly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2020 09:24:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-export-with-labels-removing-quotes/m-p/636808#M189242</guid>
      <dc:creator>Tiri6</dc:creator>
      <dc:date>2020-04-02T09:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Proc export with labels removing quotes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-export-with-labels-removing-quotes/m-p/636817#M189246</link>
      <description>&lt;P&gt;If you don't want quotes in the header row, write the data step yourself, or adapt the one that proc export created for you (take it from the log).&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input example_1 example_2;
label
  example_1 = "example:1"
  example_2 = "example:2"
;
datalines;
1 2
3 4
;

data _null_;
set have;
file "/folders/myfolders/example.csv" dlm="," dsd;
if _n_ = 1 then put "example:1,example:2";
put example_1 example_2;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 Apr 2020 09:54:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-export-with-labels-removing-quotes/m-p/636817#M189246</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-04-02T09:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: Proc export with labels removing quotes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-export-with-labels-removing-quotes/m-p/636822#M189249</link>
      <description>thank you very much. It was exactly what i needed. Have a nice day.</description>
      <pubDate>Thu, 02 Apr 2020 10:12:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-export-with-labels-removing-quotes/m-p/636822#M189249</guid>
      <dc:creator>Tiri6</dc:creator>
      <dc:date>2020-04-02T10:12:18Z</dc:date>
    </item>
  </channel>
</rss>

