<?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 a large dataset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-large-dataset/m-p/447689#M283348</link>
    <description>&lt;P&gt;See this quick example for sashelp.class:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename outfile zip "$HOME/sascommunity/class.zip" member="class.csv";

data _null_;
file outfile dlm=',';
set sashelp.class;
if _n_ = 1 then put 'name,sex,age,height,weight';
put
  name
  sex
  age
  height
  weight
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/187028"&gt;@lmtamina&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Thank you both. I am not familiar with writing to filename zip with a delimiter. Is it possible to give an example or the syntax for this procedure. Will greatly appreciate it!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Mar 2018 07:11:04 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2018-03-22T07:11:04Z</dc:date>
    <item>
      <title>How to export a large dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-large-dataset/m-p/447562#M283343</link>
      <description>&lt;P&gt;Good Afternoon,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the recommended solution to export a SAS dataset &amp;nbsp;with 14Million observations and 55 variables &amp;nbsp;. We need to send claims details to our vendor on their FTP site. I am a beginner in SAS , and I have not had any experience exporting a large dataset . I am&amp;nbsp; currently&amp;nbsp; familiar with exporting dataset into Excel and CSV format. Appreciate any&amp;nbsp;suggestions. Thank you as always.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 20:05:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-large-dataset/m-p/447562#M283343</guid>
      <dc:creator>lmtamina</dc:creator>
      <dc:date>2018-03-21T20:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a large dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-large-dataset/m-p/447565#M283344</link>
      <description>&lt;P&gt;My first idea would be Proc Export to CSV file. But that would require the order of the variables to match a column order if there is a specified order that is expected on the FTP site. File size shouldn't matter to CSV as there is no number of records limit imposed by the file type and 55 variables isn't a large number and shouldn't normally have issues.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 20:11:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-large-dataset/m-p/447565#M283344</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-03-21T20:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a large dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-large-dataset/m-p/447568#M283345</link>
      <description>&lt;P&gt;Write to filename zip with a delimiter. It's probably the most compact result.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 20:15:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-large-dataset/m-p/447568#M283345</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-03-21T20:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a large dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-large-dataset/m-p/447571#M283346</link>
      <description>&lt;P&gt;I just downloaded and imported a 86 million row CSV.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CSV will work but you'll need to zip it and it'll still be big.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can consider splitting your files into multiple subsets and then sending them piecemeal.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not ideal but probably the easiest way to do this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's an example on how to split it into small subsets by size&lt;/P&gt;
&lt;P&gt;&lt;A href="https://gist.github.com/statgeek/f4eaec3e5ec9666865e663c9e225f09d" target="_blank"&gt;https://gist.github.com/statgeek/f4eaec3e5ec9666865e663c9e225f09d&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 20:18:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-large-dataset/m-p/447571#M283346</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-03-21T20:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a large dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-large-dataset/m-p/447572#M283347</link>
      <description>&lt;P&gt;Thank you both. I am not familiar with writing to filename zip with a delimiter. Is it possible to give an example or the syntax for this procedure. Will greatly appreciate it!&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 20:18:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-large-dataset/m-p/447572#M283347</guid>
      <dc:creator>lmtamina</dc:creator>
      <dc:date>2018-03-21T20:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a large dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-large-dataset/m-p/447689#M283348</link>
      <description>&lt;P&gt;See this quick example for sashelp.class:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename outfile zip "$HOME/sascommunity/class.zip" member="class.csv";

data _null_;
file outfile dlm=',';
set sashelp.class;
if _n_ = 1 then put 'name,sex,age,height,weight';
put
  name
  sex
  age
  height
  weight
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/187028"&gt;@lmtamina&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Thank you both. I am not familiar with writing to filename zip with a delimiter. Is it possible to give an example or the syntax for this procedure. Will greatly appreciate it!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Mar 2018 07:11:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-large-dataset/m-p/447689#M283348</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-03-22T07:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a large dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-large-dataset/m-p/448489#M283349</link>
      <description>I think importing to csv will get your job done, but your file will be huge, so  if you use unix, you zip the file using gz command or use the filename zip statement</description>
      <pubDate>Sun, 25 Mar 2018 09:48:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-large-dataset/m-p/448489#M283349</guid>
      <dc:creator>mnjtrana</dc:creator>
      <dc:date>2018-03-25T09:48:33Z</dc:date>
    </item>
  </channel>
</rss>

