<?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 to CSV in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-export-to-CSV/m-p/397322#M96019</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've a dataset called test which have three varibales ID, Q1 and Q2. While exporting dataset into CSV format with the label name label names not appers in output file,only varibale original name appers in output . i'm using below code&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc export data=readin outfile="\\path\read.csv"&lt;BR /&gt;dbms=csv Replace;&lt;BR /&gt;LABEL Q1="QUA 1" Q2="QUA 2";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you to all in advance !!!&lt;/P&gt;</description>
    <pubDate>Wed, 20 Sep 2017 04:54:37 GMT</pubDate>
    <dc:creator>singhsahab</dc:creator>
    <dc:date>2017-09-20T04:54:37Z</dc:date>
    <item>
      <title>Proc export to CSV</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-export-to-CSV/m-p/397322#M96019</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've a dataset called test which have three varibales ID, Q1 and Q2. While exporting dataset into CSV format with the label name label names not appers in output file,only varibale original name appers in output . i'm using below code&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc export data=readin outfile="\\path\read.csv"&lt;BR /&gt;dbms=csv Replace;&lt;BR /&gt;LABEL Q1="QUA 1" Q2="QUA 2";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you to all in advance !!!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 04:54:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-export-to-CSV/m-p/397322#M96019</guid>
      <dc:creator>singhsahab</dc:creator>
      <dc:date>2017-09-20T04:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Proc export to CSV</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-export-to-CSV/m-p/397324#M96020</link>
      <description>&lt;P&gt;proc export does not support the label statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 05:22:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-export-to-CSV/m-p/397324#M96020</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2017-09-20T05:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Proc export to CSV</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-export-to-CSV/m-p/397347#M96030</link>
      <description>&lt;P&gt;Actually it does support the label statement but there are two things wrong wrong with your code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. It only supports variable labels on the data set - you can't change them during the Proc Expand; and&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. You've put your label statement in the wrong place - it goes BEFORE&amp;nbsp;the first semi-colon e.g.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc export data=sashelp.cars outfile="/folders/myshortcuts/Dropbox/cars.csv" label ;
dbms=csv;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Sep 2017 07:50:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-export-to-CSV/m-p/397347#M96030</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2017-09-20T07:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Proc export to CSV</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-export-to-CSV/m-p/397358#M96036</link>
      <description>The label statement must be used in a prior step before the proc export as it is not supported. Then the label option can be used to export the labels instead of the names.</description>
      <pubDate>Wed, 20 Sep 2017 08:35:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-export-to-CSV/m-p/397358#M96036</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2017-09-20T08:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: Proc export to CSV</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-export-to-CSV/m-p/397361#M96037</link>
      <description>&lt;P&gt;You're right&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt;&amp;nbsp;it is actually an option in Proc Export and not a statement - i admit I sometimes tend to use the terms interchangeably &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 08:53:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-export-to-CSV/m-p/397361#M96037</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2017-09-20T08:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: Proc export to CSV</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-export-to-CSV/m-p/397362#M96038</link>
      <description>I have a bit of OCD with terminology. &lt;BR /&gt;Not that it prevents me from making mistakes.  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Wed, 20 Sep 2017 09:02:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-export-to-CSV/m-p/397362#M96038</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2017-09-20T09:02:28Z</dc:date>
    </item>
  </channel>
</rss>

