<?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: Exporting very large csv file in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-very-large-csv-file/m-p/754425#M39115</link>
    <description>&lt;P&gt;I don't understand what is it that you want to see in "RESULTS"?&amp;nbsp; Surely not the whole very large CSV file?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The fastest way to make a CSV file is to just use a data step and with DSD option on FILE statement and a PUT statement to write the data.&amp;nbsp; But PROC EXPORT basically just generates a data step anyway so the overhead of using PROC EXPORT is not that large.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try using a fileref to tell SAS where the write the file so that you can create a ZIP file directly.&amp;nbsp; So something like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename csv zip "/locations/name.zip" member="name.csv" ;
proc export data=Completed_CSV outfile=csv dbms=csv replace;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or you could make a GZIP file instead of a ZIP file.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename csv zip "/locations/name.csv.gz" gzip ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you want some "results" to look at try just dumping a few of the lines of the CSV back to the results window/destination.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  file print;
  infile csv obs=10;
  input;
  list;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Jul 2021 19:07:14 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2021-07-15T19:07:14Z</dc:date>
    <item>
      <title>Exporting very large csv file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-very-large-csv-file/m-p/754422#M39114</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the code below:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc export data=Completed_CSV outfile="/locations/name.csv"&lt;BR /&gt;dbms=csv replace;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works perfectly and exports to the correct location on my server, but it is failing to display on my results page as I wish. Using ODS pdf has shown it in the results tab, but ods csv is impractically slow on this file for some reason. The file is too big to email from SAS&amp;nbsp; and I need to get it to my local desktop in order to upload the csv to a different software. I can view the CSV through the server's folder, but it opens in SAS and is not straightforward to save it to another location from there. Any advice on how to either get it to email out a file too large (I've tried zipping it and it wasnt working correctly) or to get it to display in results so that I can download it directly from there? Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 18:49:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-very-large-csv-file/m-p/754422#M39114</guid>
      <dc:creator>mancel3</dc:creator>
      <dc:date>2021-07-15T18:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting very large csv file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-very-large-csv-file/m-p/754425#M39115</link>
      <description>&lt;P&gt;I don't understand what is it that you want to see in "RESULTS"?&amp;nbsp; Surely not the whole very large CSV file?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The fastest way to make a CSV file is to just use a data step and with DSD option on FILE statement and a PUT statement to write the data.&amp;nbsp; But PROC EXPORT basically just generates a data step anyway so the overhead of using PROC EXPORT is not that large.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try using a fileref to tell SAS where the write the file so that you can create a ZIP file directly.&amp;nbsp; So something like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename csv zip "/locations/name.zip" member="name.csv" ;
proc export data=Completed_CSV outfile=csv dbms=csv replace;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or you could make a GZIP file instead of a ZIP file.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename csv zip "/locations/name.csv.gz" gzip ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you want some "results" to look at try just dumping a few of the lines of the CSV back to the results window/destination.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  file print;
  infile csv obs=10;
  input;
  list;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 19:07:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-very-large-csv-file/m-p/754425#M39115</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-07-15T19:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting very large csv file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-very-large-csv-file/m-p/754429#M39116</link>
      <description>It sounds like you're exporting a CSV file and you'd like to put it somewhere else besides the "locations" location? &lt;BR /&gt;&lt;BR /&gt;You can use ODS PACKAGE to zip the file directly via SAS. &lt;BR /&gt;If your zip file gets over 2GB you'll have issues. &lt;BR /&gt;What's your size limit and current file size?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 15 Jul 2021 19:10:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-very-large-csv-file/m-p/754429#M39116</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-07-15T19:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting very large csv file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-very-large-csv-file/m-p/754431#M39117</link>
      <description>&lt;P&gt;Apologies for not explaining that very well, but no I want a physical file to display in the results, not the text of the csv. Here is an example of what I got to show up using ODS for and xls, where I can click on it and have it open immediately outside of the SAS interface.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mancel3_0-1626376679318.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61286i55B88FC99F447AFB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mancel3_0-1626376679318.png" alt="mancel3_0-1626376679318.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 19:19:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-very-large-csv-file/m-p/754431#M39117</guid>
      <dc:creator>mancel3</dc:creator>
      <dc:date>2021-07-15T19:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting very large csv file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-very-large-csv-file/m-p/754433#M39118</link>
      <description>I don't think this is a programming question, you may want to talk to tech support here.</description>
      <pubDate>Thu, 15 Jul 2021 19:26:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-very-large-csv-file/m-p/754433#M39118</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-07-15T19:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting very large csv file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-very-large-csv-file/m-p/754458#M39126</link>
      <description>&lt;P&gt;There was a recent thread about some obscure poorly documented _dataout option in SAS/Studio.&amp;nbsp; I wonder if Enterprise Guide has some similar hidden trick for having your SAS code tell the caller (Enterprise Guide) what to do with the results?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 22:51:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-very-large-csv-file/m-p/754458#M39126</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-07-15T22:51:43Z</dc:date>
    </item>
  </channel>
</rss>

