<?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: Proc export to CSV in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-export-SAS-dataset-to-CSV-file/m-p/300822#M63582</link>
    <description>&lt;P&gt;Review your code. You still have DBMS= XLSX in there. Remove that portion. Note that you will need to open the file in a text editor not excel to verify the number of records.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Sep 2016 17:35:53 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-09-26T17:35:53Z</dc:date>
    <item>
      <title>Proc export SAS dataset to CSV file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-export-SAS-dataset-to-CSV-file/m-p/300803#M63579</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to export the SAS dataset that has more than&amp;nbsp;1 million records (1,120,897)&amp;nbsp;and&amp;nbsp;35 columns to the .CSV file.&lt;/P&gt;
&lt;P&gt;But while exporting the dataset , all the rows are not exported.&lt;/P&gt;
&lt;P&gt;Could you please let me know how can i export all the rows to the .CSV file ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;export&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=NEW &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;dbms&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=xlsx&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;outfile&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"\\HFNT63\devl\web\NSLIJ_testing\NEW_ENROLLMENT.xlsx"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;replace&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;; &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;Thanks&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jun 2021 03:28:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-export-SAS-dataset-to-CSV-file/m-p/300803#M63579</guid>
      <dc:creator>cho16</dc:creator>
      <dc:date>2021-06-07T03:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Proc export to CSV</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-export-SAS-dataset-to-CSV-file/m-p/300811#M63580</link>
      <description>&lt;P&gt;Your file name says you are NOT exporting to CSV but XLSX.&lt;/P&gt;
&lt;P&gt;And Excel has file size limitations that CSV does not.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 16:29:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-export-SAS-dataset-to-CSV-file/m-p/300811#M63580</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-09-26T16:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Proc export to CSV</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-export-SAS-dataset-to-CSV-file/m-p/300815#M63581</link>
      <description>&lt;P&gt;Sorry i&amp;nbsp;am trying to export the file to&amp;nbsp;CSV file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;=NEW_ENROLLMENT &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;=xlsx&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;outfile&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"\\HFNT63\devl\web\NSLIJ_testing\NEW_ENROLLMENT.csv"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;dbms&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;=csv&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;replace&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;; &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 16:53:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-export-SAS-dataset-to-CSV-file/m-p/300815#M63581</guid>
      <dc:creator>cho16</dc:creator>
      <dc:date>2016-09-26T16:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: Proc export to CSV</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-export-SAS-dataset-to-CSV-file/m-p/300822#M63582</link>
      <description>&lt;P&gt;Review your code. You still have DBMS= XLSX in there. Remove that portion. Note that you will need to open the file in a text editor not excel to verify the number of records.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 17:35:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-export-SAS-dataset-to-CSV-file/m-p/300822#M63582</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-09-26T17:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Proc export to CSV</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-export-SAS-dataset-to-CSV-file/m-p/300861#M63590</link>
      <description>&lt;P&gt;Thanks Reeza !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But how to export more than 2 million of records by using proc export.&lt;/P&gt;&lt;P&gt;The query succeds in the window but when i try to open the file it shows the "file was not load completely".&lt;/P&gt;&lt;P&gt;Could you please let me know how&amp;nbsp;to resolve this ?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 20:36:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-export-SAS-dataset-to-CSV-file/m-p/300861#M63590</guid>
      <dc:creator>cho16</dc:creator>
      <dc:date>2016-09-26T20:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Proc export to CSV</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-export-SAS-dataset-to-CSV-file/m-p/300886#M63601</link>
      <description>&lt;P&gt;DO NOT OPEN the file with Excel. EXCEL has many limitations and behaviors that are not suited for large datasets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Whatever you may be thinking of doing in Excel, you are likley better off doing in SAS and then exporting as no one in their right mind scrolls through two million lines of anything.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From:&amp;nbsp; &lt;A href="https://support.office.com/en-us/article/Excel-specifications-and-limits-ca36e2dc-1f09-4620-b726-67c00b05040f" target="_blank"&gt;https://support.office.com/en-us/article/Excel-specifications-and-limits-ca36e2dc-1f09-4620-b726-67c00b05040f&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Excel 2010, 2013, 2016&lt;/P&gt;
&lt;TABLE class="banded flipColors" id="tblID0EBBFAAA"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;Worksheet size&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;1,048,576 rows by 16,384 columns&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;So you cannot have many more than 1 million rows when opening a file in Excel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 22:05:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-export-SAS-dataset-to-CSV-file/m-p/300886#M63601</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-09-26T22:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Proc export to CSV</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-export-SAS-dataset-to-CSV-file/m-p/301016#M63652</link>
      <description>&lt;P&gt;Why are you using the xlsx DBMS if you want to create a CSV File !?&lt;/P&gt;
&lt;P&gt;Forget your code and use the SAS utility macro (already included in SAS)&lt;/P&gt;
&lt;P&gt;&lt;A href="http://go.documentation.sas.com/?cdcId=pgmmvacdc&amp;amp;cdcVersion=9.4&amp;amp;docsetId=lebaseutilref&amp;amp;docsetTarget=n0yo3bszlrh0byn1j4fxh4ndei8u.htm&amp;amp;locale=en" target="_self"&gt;%DS2CSV Macro&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%ds2csv (
   data=new, 
   runmode=b, 
   csvfile=\\HFNT63\devl\web\NSLIJ_testing\NEW_ENROLLMENT.csv
 );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;DO NOT OPEN the file with Excel. EXCEL has many limitations and behaviors that are not suited for large datasets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Whatever you may be thinking of doing in Excel, you are likley better off doing in SAS and then exporting as no one in their right mind scrolls through two million lines of anything.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From:&amp;nbsp; &lt;A href="https://support.office.com/en-us/article/Excel-specifications-and-limits-ca36e2dc-1f09-4620-b726-67c00b05040f" target="_blank" rel="nofollow noopener noreferrer"&gt;https://support.office.com/en-us/article/Excel-spe&lt;WBR /&gt;cifications-and-limits-ca36e2dc-1f09-4620-b726-67c&lt;WBR /&gt;...&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Excel 2010, 2013, 2016&lt;/P&gt;
&lt;TABLE id="tblID0EBBFAAA" class="banded flipColors"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;Worksheet size&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;1,048,576 rows by 16,384 columns&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;So you cannot have many more than 1 million rows when opening a file in Excel.&lt;/P&gt;
&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2017 11:55:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-export-SAS-dataset-to-CSV-file/m-p/301016#M63652</guid>
      <dc:creator>Oligolas</dc:creator>
      <dc:date>2017-03-30T11:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Proc export to CSV</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-export-SAS-dataset-to-CSV-file/m-p/400723#M97151</link>
      <description>&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;export&lt;/FONT&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=NEW&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;dbms&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=csv&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;outfile&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"\\HFNT63\devl\web\NSLIJ_testing\NEW_ENROLLMENT.csv"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;replace&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&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;Do not open the file with Excel. You may import the csv file in ACCESS, but there is a 2GB size limit in ACCESS.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2017 18:43:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-export-SAS-dataset-to-CSV-file/m-p/400723#M97151</guid>
      <dc:creator>jsphnwllms</dc:creator>
      <dc:date>2017-10-03T18:43:01Z</dc:date>
    </item>
  </channel>
</rss>

