<?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 Missing columns with concatenating in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Missing-columns-with-concatenating/m-p/837530#M331161</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This may sound simple but I need help.&lt;/P&gt;&lt;P&gt;I&amp;nbsp;&lt;SPAN&gt;concatenate&lt;/SPAN&gt; 2 dataset and the observations output seems fine.&lt;/P&gt;&lt;P&gt;Data 1 have &lt;SPAN&gt;12316611 obs and&lt;/SPAN&gt;187 columns&lt;/P&gt;&lt;P&gt;Data 2 have 12316611 obs and&amp;nbsp;86 columns&lt;/P&gt;&lt;P&gt;When I&amp;nbsp;&lt;SPAN&gt;concatenate&lt;/SPAN&gt;&amp;nbsp;I got&amp;nbsp;Total rows: 24633222&amp;nbsp;Total columns: 268 but I expected 273 column. Why is &amp;nbsp;the number of variables is reduced.&amp;nbsp; Could this be related to variables having different attributes. How do I resolve the issue. Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 08 Oct 2022 17:02:41 GMT</pubDate>
    <dc:creator>CathyVI</dc:creator>
    <dc:date>2022-10-08T17:02:41Z</dc:date>
    <item>
      <title>Missing columns with concatenating</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-columns-with-concatenating/m-p/837530#M331161</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This may sound simple but I need help.&lt;/P&gt;&lt;P&gt;I&amp;nbsp;&lt;SPAN&gt;concatenate&lt;/SPAN&gt; 2 dataset and the observations output seems fine.&lt;/P&gt;&lt;P&gt;Data 1 have &lt;SPAN&gt;12316611 obs and&lt;/SPAN&gt;187 columns&lt;/P&gt;&lt;P&gt;Data 2 have 12316611 obs and&amp;nbsp;86 columns&lt;/P&gt;&lt;P&gt;When I&amp;nbsp;&lt;SPAN&gt;concatenate&lt;/SPAN&gt;&amp;nbsp;I got&amp;nbsp;Total rows: 24633222&amp;nbsp;Total columns: 268 but I expected 273 column. Why is &amp;nbsp;the number of variables is reduced.&amp;nbsp; Could this be related to variables having different attributes. How do I resolve the issue. Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Oct 2022 17:02:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-columns-with-concatenating/m-p/837530#M331161</guid>
      <dc:creator>CathyVI</dc:creator>
      <dc:date>2022-10-08T17:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Missing columns with concatenating</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-columns-with-concatenating/m-p/837531#M331162</link>
      <description>&lt;P&gt;Why would you expect there to be more than 187 variables?&amp;nbsp; Are you saying that you expected NONE of the variables between the two datasets to be the same?&amp;nbsp; Then why did you concatenate the datasets?&amp;nbsp; They don't appear to have anything to do with each other.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As it is it appears that the second dataset have 268 - 187 = 81 variables that are NOT in the first dataset.&lt;/P&gt;
&lt;P&gt;So there are only 5 variables that they have in common.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Oct 2022 17:15:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-columns-with-concatenating/m-p/837531#M331162</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-10-08T17:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: Missing columns with concatenating</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-columns-with-concatenating/m-p/837535#M331165</link>
      <description>&lt;P&gt;Show the code that you used to "concatenate" the data sets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It sounds like you did a data step merge and that you have 5 variables (not "columns") with the same name in both sets.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Oct 2022 19:50:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-columns-with-concatenating/m-p/837535#M331165</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-10-08T19:50:47Z</dc:date>
    </item>
  </channel>
</rss>

