<?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: resulting data set size becomes much bigger after concatenating two data sets in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/resulting-data-set-size-becomes-much-bigger-after-concatenating/m-p/607511#M17544</link>
    <description>&lt;P&gt;Are one of the two data sets compressed?&lt;/P&gt;</description>
    <pubDate>Tue, 26 Nov 2019 21:31:05 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2019-11-26T21:31:05Z</dc:date>
    <item>
      <title>resulting data set size becomes much bigger after concatenating two data sets</title>
      <link>https://communities.sas.com/t5/New-SAS-User/resulting-data-set-size-becomes-much-bigger-after-concatenating/m-p/607510#M17543</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data lib.A;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;set B C;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to concatenate two data sets B and C. Data set B is 80.9GB, and data set C is 78.4GB. But I see resulting data set A is 378 GB. Could any one explain why data set A has much bigger size than sum of data sets B and C?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2019 21:29:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/resulting-data-set-size-becomes-much-bigger-after-concatenating/m-p/607510#M17543</guid>
      <dc:creator>hanfei28</dc:creator>
      <dc:date>2019-11-26T21:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: resulting data set size becomes much bigger after concatenating two data sets</title>
      <link>https://communities.sas.com/t5/New-SAS-User/resulting-data-set-size-becomes-much-bigger-after-concatenating/m-p/607511#M17544</link>
      <description>&lt;P&gt;Are one of the two data sets compressed?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2019 21:31:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/resulting-data-set-size-becomes-much-bigger-after-concatenating/m-p/607511#M17544</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-11-26T21:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: resulting data set size becomes much bigger after concatenating two data sets</title>
      <link>https://communities.sas.com/t5/New-SAS-User/resulting-data-set-size-becomes-much-bigger-after-concatenating/m-p/607512#M17545</link>
      <description>&lt;P&gt;Data sets B and C are not compressed.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2019 21:33:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/resulting-data-set-size-becomes-much-bigger-after-concatenating/m-p/607512#M17545</guid>
      <dc:creator>hanfei28</dc:creator>
      <dc:date>2019-11-26T21:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: resulting data set size becomes much bigger after concatenating two data sets</title>
      <link>https://communities.sas.com/t5/New-SAS-User/resulting-data-set-size-becomes-much-bigger-after-concatenating/m-p/607513#M17546</link>
      <description>&lt;P&gt;Do you get any messages about mismatching lengths or such in your log?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If so, that's likely why. You probably have a character field or multiple ones that are large in one of the data sets. You have mentioned the size but how how many records are in each data?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you post a proc contents on each data set, the A,B and C, it should be relatively easy to see where the issue is.&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 26 Nov 2019 21:44:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/resulting-data-set-size-becomes-much-bigger-after-concatenating/m-p/607513#M17546</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-11-26T21:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: resulting data set size becomes much bigger after concatenating two data sets</title>
      <link>https://communities.sas.com/t5/New-SAS-User/resulting-data-set-size-becomes-much-bigger-after-concatenating/m-p/607515#M17547</link>
      <description>&lt;P&gt;I compared the proc contents output for the three sets. They have the same variables names and variable length.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data B has 198,840,456 rows&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data C has 192,560,707 rows.&lt;/P&gt;&lt;P&gt;Data A has 391,401,163 rows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2019 21:52:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/resulting-data-set-size-becomes-much-bigger-after-concatenating/m-p/607515#M17547</guid>
      <dc:creator>hanfei28</dc:creator>
      <dc:date>2019-11-26T21:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: resulting data set size becomes much bigger after concatenating two data sets</title>
      <link>https://communities.sas.com/t5/New-SAS-User/resulting-data-set-size-becomes-much-bigger-after-concatenating/m-p/607516#M17548</link>
      <description>&lt;P&gt;Are Data A and Data B Created on the same Environment or were they copied from a different machine / Server ?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2019 21:55:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/resulting-data-set-size-becomes-much-bigger-after-concatenating/m-p/607516#M17548</guid>
      <dc:creator>r_behata</dc:creator>
      <dc:date>2019-11-26T21:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: resulting data set size becomes much bigger after concatenating two data sets</title>
      <link>https://communities.sas.com/t5/New-SAS-User/resulting-data-set-size-becomes-much-bigger-after-concatenating/m-p/607517#M17549</link>
      <description>&lt;P&gt;Two contributing data sets, B and C are from the same system(Linux system). The SAS code is run on the same system and data set A is saved to the same directory.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2019 21:58:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/resulting-data-set-size-becomes-much-bigger-after-concatenating/m-p/607517#M17549</guid>
      <dc:creator>hanfei28</dc:creator>
      <dc:date>2019-11-26T21:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: resulting data set size becomes much bigger after concatenating two data sets</title>
      <link>https://communities.sas.com/t5/New-SAS-User/resulting-data-set-size-becomes-much-bigger-after-concatenating/m-p/607518#M17550</link>
      <description>&lt;P&gt;Check the default compression :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc options option=compress;
run;
&lt;/PRE&gt;
&lt;P&gt;Apply Binary compression , if not the same and try .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;options compress=binary;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Nov 2019 22:10:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/resulting-data-set-size-becomes-much-bigger-after-concatenating/m-p/607518#M17550</guid>
      <dc:creator>r_behata</dc:creator>
      <dc:date>2019-11-26T22:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: resulting data set size becomes much bigger after concatenating two data sets</title>
      <link>https://communities.sas.com/t5/New-SAS-User/resulting-data-set-size-becomes-much-bigger-after-concatenating/m-p/607519#M17551</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/5998"&gt;@hanfei28&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I compared the proc contents output for the three sets. They have the same variables names and variable length.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data B has 198,840,456 rows&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data C has 192,560,707 rows.&lt;/P&gt;
&lt;P&gt;Data A has 391,401,163 rows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you believe their identical grab the attributes from sashelp.vcolumn and run proc compare to see the difference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data a_details;
set sashelp.vcolumn;
where libname='WORK' and memname='A';
run;

data b_details;
set sashelp.vcolumn;
where libname='WORK' and memname='B';
run;

proc compare data=a_details compare=b_details;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Nov 2019 22:17:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/resulting-data-set-size-becomes-much-bigger-after-concatenating/m-p/607519#M17551</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-11-26T22:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: resulting data set size becomes much bigger after concatenating two data sets</title>
      <link>https://communities.sas.com/t5/New-SAS-User/resulting-data-set-size-becomes-much-bigger-after-concatenating/m-p/607520#M17552</link>
      <description>&lt;P&gt;Here is the output:&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/223452"&gt;@r_behata&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;rsubmit;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;NOTE: Remote submit to POE commencing.&lt;BR /&gt;proc options option=compress;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS (r) Proprietary Software Release 9.4 TS1M4&lt;/P&gt;&lt;P&gt;COMPRESS=NO Specifies the type of compression to use for observations in output SAS data&lt;BR /&gt;sets.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2019 22:19:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/resulting-data-set-size-becomes-much-bigger-after-concatenating/m-p/607520#M17552</guid>
      <dc:creator>hanfei28</dc:creator>
      <dc:date>2019-11-26T22:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: resulting data set size becomes much bigger after concatenating two data sets</title>
      <link>https://communities.sas.com/t5/New-SAS-User/resulting-data-set-size-becomes-much-bigger-after-concatenating/m-p/607521#M17553</link>
      <description>&lt;P&gt;If there are any variables not common to both sets you end up with missing values that will take up space. Each numeric would use 8 byes for each row of the data set not containing the variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So when you say you have&lt;/P&gt;
&lt;P&gt;Data B has 198,840,456 rows&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data C has 192,560,707 rows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if you have one variable in B not in C then you potentially have 192560707*8 bytes of storage reserved. Multiply times number of variables in B not in C. If you have a variable in C not in B then 198840456*8 bytes potential disk use.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Long character values can make this potentially many more bytes.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2019 22:20:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/resulting-data-set-size-becomes-much-bigger-after-concatenating/m-p/607521#M17553</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-11-26T22:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: resulting data set size becomes much bigger after concatenating two data sets</title>
      <link>https://communities.sas.com/t5/New-SAS-User/resulting-data-set-size-becomes-much-bigger-after-concatenating/m-p/607522#M17554</link>
      <description>You can't check just options unfortunately. You can have compression set on data sets, in general via proc options or on a library.</description>
      <pubDate>Tue, 26 Nov 2019 22:20:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/resulting-data-set-size-becomes-much-bigger-after-concatenating/m-p/607522#M17554</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-11-26T22:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: resulting data set size becomes much bigger after concatenating two data sets</title>
      <link>https://communities.sas.com/t5/New-SAS-User/resulting-data-set-size-becomes-much-bigger-after-concatenating/m-p/607580#M17560</link>
      <description>&lt;P&gt;Please post the&amp;nbsp;&lt;EM&gt;complete(!)&lt;/EM&gt; output of proc contents for all three datasets.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 09:18:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/resulting-data-set-size-becomes-much-bigger-after-concatenating/m-p/607580#M17560</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-11-27T09:18:27Z</dc:date>
    </item>
  </channel>
</rss>

