<?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: File size as compared to SPSS in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/File-size-as-compared-to-SPSS/m-p/70613#M20317</link>
    <description>Why:  they store data differently.&lt;BR /&gt;
&lt;BR /&gt;
To reduce the file size in SAS, the best way is the judicious use of the LENGTH statement.  With that big a difference in files sizes, I suspect that you have some character fields that are very long.&lt;BR /&gt;
&lt;BR /&gt;
Doc Muhlbaier&lt;BR /&gt;
Duke</description>
    <pubDate>Wed, 09 Feb 2011 15:20:43 GMT</pubDate>
    <dc:creator>Doc_Duke</dc:creator>
    <dc:date>2011-02-09T15:20:43Z</dc:date>
    <item>
      <title>File size as compared to SPSS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/File-size-as-compared-to-SPSS/m-p/70612#M20316</link>
      <description>When I save a dataset in SAS and in SPSS, the SAS file is significantly larger than the SPSS file (e.g., 7 MB is SAS and 968 KB in SPSS). &lt;BR /&gt;
&lt;BR /&gt;
Does anyone know why this is and if there is a way that I can decrease the file size in SAS?&lt;BR /&gt;
&lt;BR /&gt;
Thanks!</description>
      <pubDate>Wed, 09 Feb 2011 15:00:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/File-size-as-compared-to-SPSS/m-p/70612#M20316</guid>
      <dc:creator>amym</dc:creator>
      <dc:date>2011-02-09T15:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: File size as compared to SPSS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/File-size-as-compared-to-SPSS/m-p/70613#M20317</link>
      <description>Why:  they store data differently.&lt;BR /&gt;
&lt;BR /&gt;
To reduce the file size in SAS, the best way is the judicious use of the LENGTH statement.  With that big a difference in files sizes, I suspect that you have some character fields that are very long.&lt;BR /&gt;
&lt;BR /&gt;
Doc Muhlbaier&lt;BR /&gt;
Duke</description>
      <pubDate>Wed, 09 Feb 2011 15:20:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/File-size-as-compared-to-SPSS/m-p/70613#M20317</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2011-02-09T15:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: File size as compared to SPSS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/File-size-as-compared-to-SPSS/m-p/70614#M20318</link>
      <description>Another way to reduce the storage required for SAS tables is the compress=char option.&lt;BR /&gt;
It won't always reduce the storage required, but for tables with a lot of white space (wide character columns that are not always filled) the saving can be substantial.&lt;BR /&gt;
&lt;BR /&gt;
data demo_wide (compress= yes) ;&lt;BR /&gt;
  length wide1-wide20 $32760 ;&lt;BR /&gt;
  do i= 1 to 100 ;&lt;BR /&gt;
   output ;&lt;BR /&gt;
  end;&lt;BR /&gt;
run ; &lt;BR /&gt;
generates these messages[pre]NOTE: The data set WORK.DEMO_WIDE has 100 observations and 21 variables.&lt;BR /&gt;
NOTE: Compressing data set WORK.DEMO_WIDE decreased size by 98.00 percent.&lt;BR /&gt;
      Compressed is 2 pages; un-compressed would require 100 pages.&lt;BR /&gt;
NOTE: DATA statement used   [/pre]Of course you won't get 98% decrease when you store data, but I suspect if SPSS can store the information in a much smaller space, then the compress option on your SAS table would reduce its demand for disk space too.</description>
      <pubDate>Thu, 10 Feb 2011 11:48:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/File-size-as-compared-to-SPSS/m-p/70614#M20318</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2011-02-10T11:48:27Z</dc:date>
    </item>
  </channel>
</rss>

