<?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 Export to ZIP file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Export-to-ZIP-file/m-p/582712#M165804</link>
    <description>&lt;P&gt;Hello&lt;BR /&gt;I want to export a data set with 2 million rows.&lt;BR /&gt;I want that the file we create will be compressed (ZIP)&lt;BR /&gt;I see that there was created a folder called "test.zip"&amp;nbsp; but there is no file inside&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename     _dataout    zip     "/path/test.zip";

proc export data=sashelp.cars
  outfile=_dataout
  dbms=csv replace;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 21 Aug 2019 10:16:56 GMT</pubDate>
    <dc:creator>Ronein</dc:creator>
    <dc:date>2019-08-21T10:16:56Z</dc:date>
    <item>
      <title>Export to ZIP file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-to-ZIP-file/m-p/582712#M165804</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;I want to export a data set with 2 million rows.&lt;BR /&gt;I want that the file we create will be compressed (ZIP)&lt;BR /&gt;I see that there was created a folder called "test.zip"&amp;nbsp; but there is no file inside&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename     _dataout    zip     "/path/test.zip";

proc export data=sashelp.cars
  outfile=_dataout
  dbms=csv replace;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Aug 2019 10:16:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-to-ZIP-file/m-p/582712#M165804</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2019-08-21T10:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Export to ZIP file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-to-ZIP-file/m-p/582751#M165816</link>
      <description>&lt;P&gt;Please post the log of this code.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2019 12:25:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-to-ZIP-file/m-p/582751#M165816</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-08-21T12:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: Export to ZIP file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-to-ZIP-file/m-p/582766#M165823</link>
      <description>&lt;P&gt;You didn't tell SAS what name to give the file. Just which directory (zip file) you wanted to write the file.&lt;/P&gt;
&lt;P&gt;Either add the MEMNAME= option to the FILENAME statement&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename _dataout zip "/path/test.zip" memname='cars.csv';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or leave the fileref pointing to the directory and tell PROC EXPORT what name to use within the directory.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;outfile=_dataout('cars.csv')&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2019 13:26:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-to-ZIP-file/m-p/582766#M165823</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-08-21T13:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Export to ZIP file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-to-ZIP-file/m-p/582772#M165828</link>
      <description>&lt;P&gt;When testing the OP code on SAS 9.4M6 on AIX and copying the .zip file to Windows, I got a single member called "test" (no extension) in the zip file when opened with 7zip. Opening the .zip with just the Windows Explorer it looked empty.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bottom line: never trust a Microsoft tool to get it right.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2019 13:38:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-to-ZIP-file/m-p/582772#M165828</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-08-21T13:38:14Z</dc:date>
    </item>
  </channel>
</rss>

