<?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 compress all data set in a library in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-compress-all-data-set-in-a-library/m-p/106605#M258565</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks for your help.&amp;nbsp; I found compress data reduce I/O quite a bit...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Oct 2013 04:02:43 GMT</pubDate>
    <dc:creator>caveman529</dc:creator>
    <dc:date>2013-10-09T04:02:43Z</dc:date>
    <item>
      <title>How to compress all data set in a library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-compress-all-data-set-in-a-library/m-p/106602#M258562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ladies and Gentlemen:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I forgot to put the option (compress=yes) in my original code when creating dataset.&amp;nbsp; Is there a way to compress those SAS datasets in a batch mode?&amp;nbsp; There are too many of them to do it manually?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----------------------------------------------------------------------;&lt;/P&gt;&lt;P&gt;* Copying datasets adding compression ;&lt;/P&gt;&lt;P&gt;*----------------------------------------------------------------------;&lt;/P&gt;&lt;P&gt;%let path=.;&lt;/P&gt;&lt;P&gt;options compress=yes ;&lt;/P&gt;&lt;P&gt;libname in "&amp;amp;path";&lt;/P&gt;&lt;P&gt;libname out "&amp;amp;path";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc copy inlib=in outlib=out noclone datecopy memtype=data ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I'm not sure this works or not, or it is the correct way for doing so.&amp;nbsp; Thanks -&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 16:27:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-compress-all-data-set-in-a-library/m-p/106602#M258562</guid>
      <dc:creator>caveman529</dc:creator>
      <dc:date>2013-10-08T16:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to compress all data set in a library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-compress-all-data-set-in-a-library/m-p/106603#M258563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In 9.4 at least, SAS will stop you from doing that - you haven't tested yourself?&lt;/P&gt;&lt;P&gt;The simplest seems to have the tables compressed in alternate location.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 18:01:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-compress-all-data-set-in-a-library/m-p/106603#M258563</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2013-10-08T18:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to compress all data set in a library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-compress-all-data-set-in-a-library/m-p/106604#M258564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Some code like below should do the job:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;options compress=yes;&lt;/P&gt;&lt;P&gt;libname temp "c:\tests";&lt;BR /&gt;libname source (work);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc datasets lib=temp kill nowarn nolist;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; copy inlib=work outlib=temp noclone datecopy memtype=data index=yes constraint=yes;&lt;BR /&gt;&amp;nbsp; run;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; copy inlib=temp outlib=work noclone datecopy memtype=data index=yes constraint=yes move;&lt;BR /&gt;&amp;nbsp; run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;libname temp clear;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 02:27:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-compress-all-data-set-in-a-library/m-p/106604#M258564</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2013-10-09T02:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to compress all data set in a library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-compress-all-data-set-in-a-library/m-p/106605#M258565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks for your help.&amp;nbsp; I found compress data reduce I/O quite a bit...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 04:02:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-compress-all-data-set-in-a-library/m-p/106605#M258565</guid>
      <dc:creator>caveman529</dc:creator>
      <dc:date>2013-10-09T04:02:43Z</dc:date>
    </item>
  </channel>
</rss>

