<?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 export sasdata as a filetype: CSV UTF-8 (comma separated) (*.csv) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-sasdata-as-a-filetype-CSV-UTF-8-comma-separated/m-p/501092#M133564</link>
    <description>&lt;P&gt;Yes, correct,&amp;nbsp;I&amp;nbsp;just&amp;nbsp;use EXCEL to check the filetype&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;Do&amp;nbsp;you&amp;nbsp;know how to export a SAS-file to the filetype:&amp;nbsp;CSV UTF-8 (comma separated) (*.csv)?&lt;/P&gt;</description>
    <pubDate>Wed, 03 Oct 2018 11:32:07 GMT</pubDate>
    <dc:creator>Helle42</dc:creator>
    <dc:date>2018-10-03T11:32:07Z</dc:date>
    <item>
      <title>How to export sasdata as a filetype: CSV UTF-8 (comma separated) (*.csv)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-sasdata-as-a-filetype-CSV-UTF-8-comma-separated/m-p/501084#M133558</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I try to export my&amp;nbsp;sasdata to the&amp;nbsp;filetype: CSV UTF-8 (comma separated) (*.csv).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my code:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;filename&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; exp &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'myoutlib\Testdata.csv'&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;encoding&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"UTF-8"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;Proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;export&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;Data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=sashelp.class &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;outfile&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;= exp &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;DBMS&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=dlm &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;replace&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;; DELIMITER=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;";"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards, Helle&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Oct 2018 12:11:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-sasdata-as-a-filetype-CSV-UTF-8-comma-separated/m-p/501084#M133558</guid>
      <dc:creator>Helle42</dc:creator>
      <dc:date>2018-10-03T12:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to export sasdata as a filetype: CSV UTF-8 (comma separated) (*.csv)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-sasdata-as-a-filetype-CSV-UTF-8-comma-separated/m-p/501088#M133561</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename output '/path/filename.csv' encoding="utf-8";

proc export data=mylib.mydata out=output dbms=csv;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 Oct 2018 11:14:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-sasdata-as-a-filetype-CSV-UTF-8-comma-separated/m-p/501088#M133561</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-10-03T11:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to export sasdata as a filetype: CSV UTF-8 (comma separated) (*.csv)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-sasdata-as-a-filetype-CSV-UTF-8-comma-separated/m-p/501089#M133562</link>
      <description>&lt;P&gt;CSV is not an Excel filetype.&amp;nbsp; CSV = text file with comma separated variables, with possible header row.&amp;nbsp; Just because Excel has a module which can read and parse CSV files, does not make them Excel files.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Oct 2018 11:20:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-sasdata-as-a-filetype-CSV-UTF-8-comma-separated/m-p/501089#M133562</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-10-03T11:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to export sasdata as a filetype: CSV UTF-8 (comma separated) (*.csv)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-sasdata-as-a-filetype-CSV-UTF-8-comma-separated/m-p/501091#M133563</link>
      <description>&lt;PRE class="tw-data-text tw-ta tw-text-small"&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Oct 2018 12:31:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-sasdata-as-a-filetype-CSV-UTF-8-comma-separated/m-p/501091#M133563</guid>
      <dc:creator>Helle42</dc:creator>
      <dc:date>2018-10-03T12:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to export sasdata as a filetype: CSV UTF-8 (comma separated) (*.csv)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-sasdata-as-a-filetype-CSV-UTF-8-comma-separated/m-p/501092#M133564</link>
      <description>&lt;P&gt;Yes, correct,&amp;nbsp;I&amp;nbsp;just&amp;nbsp;use EXCEL to check the filetype&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;Do&amp;nbsp;you&amp;nbsp;know how to export a SAS-file to the filetype:&amp;nbsp;CSV UTF-8 (comma separated) (*.csv)?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Oct 2018 11:32:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-sasdata-as-a-filetype-CSV-UTF-8-comma-separated/m-p/501092#M133564</guid>
      <dc:creator>Helle42</dc:creator>
      <dc:date>2018-10-03T11:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to export sasdata as a filetype: CSV UTF-8 (comma separated) (*.csv)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-sasdata-as-a-filetype-CSV-UTF-8-comma-separated/m-p/501094#M133566</link>
      <description>&lt;P&gt;Forget Excel.&amp;nbsp; Please show what code you are running to create the file (and use sashelp.class or something so that we can run it also).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Oct 2018 11:45:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-sasdata-as-a-filetype-CSV-UTF-8-comma-separated/m-p/501094#M133566</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-10-03T11:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to export sasdata as a filetype: CSV UTF-8 (comma separated) (*.csv)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-sasdata-as-a-filetype-CSV-UTF-8-comma-separated/m-p/501095#M133567</link>
      <description>&lt;P&gt;have you tried using the export wizard?&amp;nbsp; there is only one csv type to choice from during the exporting.&amp;nbsp; You can save to export code created via the wizard and then edit that SAS export code to meet your needs.&lt;/P&gt;&lt;P&gt;CSV is not an Excel file nor an Excel dataset.&amp;nbsp; Excel is not a database, while many managers use the tool in that manner it is not a database.&lt;/P&gt;&lt;P&gt;Know your data, know your operating system.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Oct 2018 11:53:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-sasdata-as-a-filetype-CSV-UTF-8-comma-separated/m-p/501095#M133567</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2018-10-03T11:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to export sasdata as a filetype: CSV UTF-8 (comma separated) (*.csv)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-sasdata-as-a-filetype-CSV-UTF-8-comma-separated/m-p/501097#M133569</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/237905"&gt;@Helle42&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;PRE class="tw-data-text tw-ta tw-text-small"&gt;&lt;SPAN&gt;Thanks, but I have already tried that. Unfortunately, the file format is unicode.txt... &lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;unicode.txt is not a file format, it's a filename. Filenames are irrelevant with respect to contents, I can easily save a SAS program as garbage.frumpyfurious, the content would still be a SAS program. It's just that programs like the Windows Explorer would have a hard time finding the right software to open it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Therefore it is correct to save a CSV file with a .csv extension. And those correct extensions also work better with current Excel versions, as Excel will complain if you let it open a file with a wrong extension (eg a .xls extension for a XML file created by ods tagsets.excelxp).&lt;/P&gt;
&lt;P&gt;On top of that, MS Office will assign the .csv extension to MS Excel, so double-clicking works (which it does not do for .txt, as that is assigned to the default Editor)&lt;/P&gt;</description>
      <pubDate>Wed, 03 Oct 2018 11:55:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-sasdata-as-a-filetype-CSV-UTF-8-comma-separated/m-p/501097#M133569</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-10-03T11:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to export sasdata as a filetype: CSV UTF-8 (comma separated) (*.csv)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-sasdata-as-a-filetype-CSV-UTF-8-comma-separated/m-p/501098#M133570</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/122002"&gt;@VDD&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;Know your data, know your operating system.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;AKA Maxim 3 and Maxim 15 &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Oct 2018 11:57:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-sasdata-as-a-filetype-CSV-UTF-8-comma-separated/m-p/501098#M133570</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-10-03T11:57:23Z</dc:date>
    </item>
  </channel>
</rss>

