<?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 compress =yes CPU time in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/compress-yes-CPU-time/m-p/393737#M94843</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The compress option will save space around 50% for large dataset. but will run longer and need more time to finish a program.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;May I ask approximately how much more CPU time needed to use compress =yes on large SAS dataset?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if&amp;nbsp;the original program use 2 hours to run without compress=yes.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 07 Sep 2017 00:00:11 GMT</pubDate>
    <dc:creator>GeorgeSAS</dc:creator>
    <dc:date>2017-09-07T00:00:11Z</dc:date>
    <item>
      <title>compress =yes CPU time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/compress-yes-CPU-time/m-p/393737#M94843</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The compress option will save space around 50% for large dataset. but will run longer and need more time to finish a program.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;May I ask approximately how much more CPU time needed to use compress =yes on large SAS dataset?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if&amp;nbsp;the original program use 2 hours to run without compress=yes.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2017 00:00:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/compress-yes-CPU-time/m-p/393737#M94843</guid>
      <dc:creator>GeorgeSAS</dc:creator>
      <dc:date>2017-09-07T00:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: compress =yes CPU time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/compress-yes-CPU-time/m-p/393740#M94845</link>
      <description>&lt;P&gt;Without knowing the specifics there's no way to know. it depends on exactly what's going on in your program.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can test it. I'm *think*&amp;nbsp;SAS states if the compression will not improve performance and will not implement it if it worsens performance. That being said, you should still test it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2017 00:20:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/compress-yes-CPU-time/m-p/393740#M94845</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-09-07T00:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: compress =yes CPU time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/compress-yes-CPU-time/m-p/393743#M94847</link>
      <description>&lt;P&gt;The space savings and the impact on CPU will vary depending upon the data encountered.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have a dataset with loads of empty string values, for example, lastName, then it 'might' save you space. It depends on how much space is held by the string fields.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example (end of field denoted by *):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Smith &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;*&lt;/P&gt;
&lt;P&gt;Westinghouse &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With compression, it becomes:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Smith*&lt;/P&gt;
&lt;P&gt;Westinghouse*&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That is not 100% accurate but it illustrates the point.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have a dataset with nothing but numerics, it will buy no change in space and cost CPU overhead. Keep in mind, I am simplifying what happens here: it is more complex.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Test your datasets. Datasets with lots of long string fields are good canidates for compression..&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2017 01:22:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/compress-yes-CPU-time/m-p/393743#M94847</guid>
      <dc:creator>AlanC</dc:creator>
      <dc:date>2017-09-07T01:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: compress =yes CPU time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/compress-yes-CPU-time/m-p/393744#M94848</link>
      <description>&lt;P&gt;There may be another way. &amp;nbsp;COMPRESS=YES primarily works on character strings. &amp;nbsp;(It has some impact on numerics as well, but most of the savings is&amp;nbsp;for long character variables that contain a bunch of blanks.) &amp;nbsp;If you are saving 50% by using compression, it is likely you could save on the space by selecting shorter lengths for some of your variables. &amp;nbsp;It would take some inspection of the data to see whether better lengths are possible and what they should be. &amp;nbsp;But you would gain some of the benefits of compression without having to actually compress the data. &amp;nbsp;If that turns out to be the case, you could save both space and time by shortening the variables.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2017 01:25:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/compress-yes-CPU-time/m-p/393744#M94848</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-09-07T01:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: compress =yes CPU time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/compress-yes-CPU-time/m-p/393759#M94854</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10531"&gt;@GeorgeSAS&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The compress option will save space around 50% for large dataset. but will run longer and need more time to finish a program.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;May I ask approximately how much more CPU time needed to use compress =yes on large SAS dataset?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if&amp;nbsp;the original program use 2 hours to run without compress=yes.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;In general I find that if compression saves 50% of the disk space using it will also REDUCE run times.&lt;/P&gt;
&lt;P&gt;That is because most SAS programs are I/O bound and not CPU bound so having to read and/or write fewer disk blocks will make the program run faster even it uses more CPU time.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2017 04:52:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/compress-yes-CPU-time/m-p/393759#M94854</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-09-07T04:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: compress =yes CPU time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/compress-yes-CPU-time/m-p/393762#M94856</link>
      <description>&lt;P&gt;&amp;gt;&lt;SPAN&gt;In general I find that if compression saves 50% of the disk space using it will also REDUCE run times.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Indeed. CPU speeds have progressed a lot faster than storage speeds.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want compression ratios that routinely reach&amp;nbsp;80-90% compression on non-binary (numbers and strings) data (and associated speed increases), SPDE's binary compression is what you need.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2017 04:57:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/compress-yes-CPU-time/m-p/393762#M94856</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2017-09-07T04:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: compress =yes CPU time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/compress-yes-CPU-time/m-p/393981#M94904</link>
      <description>This is very interesting,I will test it soon.&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Thu, 07 Sep 2017 18:08:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/compress-yes-CPU-time/m-p/393981#M94904</guid>
      <dc:creator>GeorgeSAS</dc:creator>
      <dc:date>2017-09-07T18:08:31Z</dc:date>
    </item>
  </channel>
</rss>

