<?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 dataset? Any way to read compressed dataset directly?! in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-compress-dataset-Any-way-to-read-compressed-dataset/m-p/799823#M314547</link>
    <description>&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Is-your-SAS-library-a-disk-hog-Here-s-how-to-put-it-on-a-diet/ta-p/799438" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/Is-your-SAS-library-a-disk-hog-Here-s-how-to-put-it-on-a-diet/ta-p/799438&lt;/A&gt;</description>
    <pubDate>Thu, 03 Mar 2022 12:43:04 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2022-03-03T12:43:04Z</dc:date>
    <item>
      <title>How to compress dataset? Any way to read compressed dataset directly?!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-compress-dataset-Any-way-to-read-compressed-dataset/m-p/799717#M314473</link>
      <description>&lt;P&gt;Get daily data with gazillion row/column, need to compress and save space.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any way to compress sas dataset?!&amp;nbsp; Also to read-in from compressed dataset directly?!&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 01:53:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-compress-dataset-Any-way-to-read-compressed-dataset/m-p/799717#M314473</guid>
      <dc:creator>hellohere</dc:creator>
      <dc:date>2022-03-03T01:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to compress dataset? Any way to read compressed dataset directly?!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-compress-dataset-Any-way-to-read-compressed-dataset/m-p/799719#M314474</link>
      <description>&lt;P&gt;you can use compress option.&lt;/P&gt;
&lt;P&gt;- compress= dataset option&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/ledsoptsref/n014hy7167t2asn1j7qo99qv16wa.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/ledsoptsref/n014hy7167t2asn1j7qo99qv16wa.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- compress= system option&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lesysoptsref/n0uhpz2l79vy0qn12x3ifcvjzsyt.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lesysoptsref/n0uhpz2l79vy0qn12x3ifcvjzsyt.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options compress=yes;/* this apply all datasets */


data test;
  set sashelp.class(compress=yes);/* this apply this dataset only */
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 02:11:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-compress-dataset-Any-way-to-read-compressed-dataset/m-p/799719#M314474</guid>
      <dc:creator>japelin</dc:creator>
      <dc:date>2022-03-03T02:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to compress dataset? Any way to read compressed dataset directly?!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-compress-dataset-Any-way-to-read-compressed-dataset/m-p/799721#M314476</link>
      <description>&lt;P&gt;It is quite common for SAS installations to have the COMPRESS = YES or COMPRESS = BINARY options switched on by default so all SAS datasets stored on disk are compressed unless the option is turned off for specific datasets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please note that SAS datasets are not compressed once loaded into memory. The one exception to this is with SAS VA in-memory datasets where they can be optionally compressed. This can significantly degrade performance so is not normally recommended.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 02:19:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-compress-dataset-Any-way-to-read-compressed-dataset/m-p/799721#M314476</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-03-03T02:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to compress dataset? Any way to read compressed dataset directly?!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-compress-dataset-Any-way-to-read-compressed-dataset/m-p/799723#M314478</link>
      <description>&lt;P&gt;when read-in, anything additional needed?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 02:52:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-compress-dataset-Any-way-to-read-compressed-dataset/m-p/799723#M314478</guid>
      <dc:creator>hellohere</dc:creator>
      <dc:date>2022-03-03T02:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to compress dataset? Any way to read compressed dataset directly?!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-compress-dataset-Any-way-to-read-compressed-dataset/m-p/799823#M314547</link>
      <description>&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Is-your-SAS-library-a-disk-hog-Here-s-how-to-put-it-on-a-diet/ta-p/799438" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/Is-your-SAS-library-a-disk-hog-Here-s-how-to-put-it-on-a-diet/ta-p/799438&lt;/A&gt;</description>
      <pubDate>Thu, 03 Mar 2022 12:43:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-compress-dataset-Any-way-to-read-compressed-dataset/m-p/799823#M314547</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-03-03T12:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to compress dataset? Any way to read compressed dataset directly?!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-compress-dataset-Any-way-to-read-compressed-dataset/m-p/799849#M314558</link>
      <description>&lt;P&gt;Are you getting the data as datasets? or text files, like a csv file? Or some other format, like XLSX?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS has a compress option that can reduce the size the SAS datasets take on the disk.&amp;nbsp; You can use these like normal SAS datasets.&amp;nbsp; There is a little bit of extra CPU time to expand it, but normally it is more than offset by the reduced Input/Output time.&amp;nbsp; But note the level of compress is much smaller than you would get with some file level compression tool, like ZIP or GZIP.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the file is a simple text file then use ZIP or GZIP to compress it.&amp;nbsp; You can still read either format from SAS by using the ZIP filename engine.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 14:09:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-compress-dataset-Any-way-to-read-compressed-dataset/m-p/799849#M314558</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-03-03T14:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to compress dataset? Any way to read compressed dataset directly?!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-compress-dataset-Any-way-to-read-compressed-dataset/m-p/832281#M328950</link>
      <description>&lt;P&gt;Seem SAS complains.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;41301
41302  options compress=yes;/* this apply all datasets */
41303
41304  data test;
41305    set sashelp.class(compress=yes);/* this apply this dataset only */
                           --------
                           70
WARNING 70-63: The option COMPRESS is not valid in this context.  Option ignored.

41306  run;

NOTE: There were 19 observations read from the data set SASHELP.CLASS.
NOTE: The data set WORK.TEST has 19 observations and 5 variables.
NOTE: Compressing data set WORK.TEST increased size by 100.00 percent.
      Compressed is 2 pages; un-compressed would require 1 pages.
NOTE: DATA statement used (Total process time):
      real time           0.01 seconds
      cpu time            0.00 seconds
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Sep 2022 09:57:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-compress-dataset-Any-way-to-read-compressed-dataset/m-p/832281#M328950</guid>
      <dc:creator>hellohere</dc:creator>
      <dc:date>2022-09-08T09:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to compress dataset? Any way to read compressed dataset directly?!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-compress-dataset-Any-way-to-read-compressed-dataset/m-p/832311#M328959</link>
      <description>&lt;P&gt;You do not put the COMPRESS= dataset option on the dataset being read.&amp;nbsp; That does not make any sense.&amp;nbsp; SAS can tell from the header of the file being read whether or not it was written using compression.&amp;nbsp; It is when you are writing the dataset that you need to tell SAS what compression method to use.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test(compress=yes);
  set sashelp.class;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Sep 2022 13:52:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-compress-dataset-Any-way-to-read-compressed-dataset/m-p/832311#M328959</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-09-08T13:52:23Z</dc:date>
    </item>
  </channel>
</rss>

