<?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: I have sas dataset. Can we compress the size of this existing sas dataset using any sas statemen in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/I-have-sas-dataset-Can-we-compress-the-size-of-this-existing-sas/m-p/672831#M202262</link>
    <description>&lt;P&gt;Please provide more context on what you are doing.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I find that compressing SAS datasets with ZIP or GZIP will reduce the file size a lot (up to 80-90 percent reduction on many cases).&amp;nbsp; But then you will need to uncompress them to use them.&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jul 2020 13:53:03 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2020-07-28T13:53:03Z</dc:date>
    <item>
      <title>I have sas dataset. Can we compress the size of this existing sas dataset using any sas statement?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-have-sas-dataset-Can-we-compress-the-size-of-this-existing-sas/m-p/672798#M202246</link>
      <description />
      <pubDate>Tue, 28 Jul 2020 12:29:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-have-sas-dataset-Can-we-compress-the-size-of-this-existing-sas/m-p/672798#M202246</guid>
      <dc:creator>Prashanth10</dc:creator>
      <dc:date>2020-07-28T12:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: I have sas dataset. Can we compress the size of this existing sas dataset using any sas statemen</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-have-sas-dataset-Can-we-compress-the-size-of-this-existing-sas/m-p/672802#M202249</link>
      <description>&lt;A href="https://documentation.sas.com/?docsetId=ledsoptsref&amp;amp;docsetTarget=n014hy7167t2asn1j7qo99qv16wa.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?docsetId=ledsoptsref&amp;amp;docsetTarget=n014hy7167t2asn1j7qo99qv16wa.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;</description>
      <pubDate>Tue, 28 Jul 2020 12:45:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-have-sas-dataset-Can-we-compress-the-size-of-this-existing-sas/m-p/672802#M202249</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2020-07-28T12:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: I have sas dataset. Can we compress the size of this existing sas dataset using any sas statemen</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-have-sas-dataset-Can-we-compress-the-size-of-this-existing-sas/m-p/672805#M202251</link>
      <description>options compress=yes;&lt;BR /&gt;data new;&lt;BR /&gt; set old;&lt;BR /&gt;run;</description>
      <pubDate>Tue, 28 Jul 2020 12:54:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-have-sas-dataset-Can-we-compress-the-size-of-this-existing-sas/m-p/672805#M202251</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-07-28T12:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: I have sas dataset. Can we compress the size of this existing sas dataset using any sas statemen</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-have-sas-dataset-Can-we-compress-the-size-of-this-existing-sas/m-p/672806#M202252</link>
      <description>But yabwon.. but compress would create a new output sas datset. But i dont want to create a new datset. Is there any other way?</description>
      <pubDate>Tue, 28 Jul 2020 12:59:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-have-sas-dataset-Can-we-compress-the-size-of-this-existing-sas/m-p/672806#M202252</guid>
      <dc:creator>Prashanth10</dc:creator>
      <dc:date>2020-07-28T12:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: I have sas dataset. Can we compress the size of this existing sas dataset using any sas statemen</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-have-sas-dataset-Can-we-compress-the-size-of-this-existing-sas/m-p/672809#M202254</link>
      <description>Thanks ksharp..but this method will create a new dataset. But i dont want to create a new dataset. Is there any other way?</description>
      <pubDate>Tue, 28 Jul 2020 13:02:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-have-sas-dataset-Can-we-compress-the-size-of-this-existing-sas/m-p/672809#M202254</guid>
      <dc:creator>Prashanth10</dc:creator>
      <dc:date>2020-07-28T13:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: I have sas dataset. Can we compress the size of this existing sas dataset using any sas statemen</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-have-sas-dataset-Can-we-compress-the-size-of-this-existing-sas/m-p/672811#M202255</link>
      <description>&lt;P&gt;In order to remove redundant information from the dataset, you have to rewrite it. That is a very obvious given.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 13:03:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-have-sas-dataset-Can-we-compress-the-size-of-this-existing-sas/m-p/672811#M202255</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-07-28T13:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: I have sas dataset. Can we compress the size of this existing sas dataset using any sas statemen</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-have-sas-dataset-Can-we-compress-the-size-of-this-existing-sas/m-p/672814#M202257</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data old(compress=char);
  set old;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Jul 2020 13:07:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-have-sas-dataset-Can-we-compress-the-size-of-this-existing-sas/m-p/672814#M202257</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2020-07-28T13:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: I have sas dataset. Can we compress the size of this existing sas dataset using any sas statemen</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-have-sas-dataset-Can-we-compress-the-size-of-this-existing-sas/m-p/672831#M202262</link>
      <description>&lt;P&gt;Please provide more context on what you are doing.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I find that compressing SAS datasets with ZIP or GZIP will reduce the file size a lot (up to 80-90 percent reduction on many cases).&amp;nbsp; But then you will need to uncompress them to use them.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 13:53:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-have-sas-dataset-Can-we-compress-the-size-of-this-existing-sas/m-p/672831#M202262</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-07-28T13:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: I have sas dataset. Can we compress the size of this existing sas dataset using any sas statemen</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-have-sas-dataset-Can-we-compress-the-size-of-this-existing-sas/m-p/672838#M202264</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just a side note.&lt;/P&gt;
&lt;P&gt;With the current SAS (9.4M2 and newer) you don't need any external ZIPping software.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The following code makes 128KB file into 2KB zip.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data class; /* demo dataset */
  set sashelp.class;
run;

filename cmprss ZIP "%sysfunc(pathname(work))/class.zip" member="class.sas7bdat" lrecl = 1 recfm = f;

filename in "%sysfunc(pathname(work))/class.sas7bdat" lrecl = 1 recfm = f;

data _null_;
  rc = fcopy("in", "cmprss");
  put rc = ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and the following one will unzip it back:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  rc = fcopy("cmprss", "in");
  put rc = ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;All the best&lt;/P&gt;
&lt;P&gt;Bart&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 14:07:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-have-sas-dataset-Can-we-compress-the-size-of-this-existing-sas/m-p/672838#M202264</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2020-07-28T14:07:11Z</dc:date>
    </item>
  </channel>
</rss>

