<?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 Concatenation of several tables with the same variable names but some are of different types between in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Concatenation-of-several-tables-with-the-same-variable-names-but/m-p/905303#M357578</link>
    <description>&lt;P&gt;Hello, I have several sas tables (T1, T2, T3, etc.) I want to concatenate its different tables.&lt;/P&gt;
&lt;P&gt;I do the data step correctly with the set instruction. But I get empty lines. On the documentation, it states to see the types of certain variables and to order the variables. I've done it but I still get empty observations.&lt;BR /&gt;I cannot send an extract of the bases because I cannot find the examples that I know how to create to reflect the problem. Thank you for understanding.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anyone give me some hints ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;THANKS.&lt;BR /&gt;Gick&lt;/P&gt;</description>
    <pubDate>Thu, 30 Nov 2023 04:49:10 GMT</pubDate>
    <dc:creator>Gick</dc:creator>
    <dc:date>2023-11-30T04:49:10Z</dc:date>
    <item>
      <title>Concatenation of several tables with the same variable names but some are of different types between</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Concatenation-of-several-tables-with-the-same-variable-names-but/m-p/905303#M357578</link>
      <description>&lt;P&gt;Hello, I have several sas tables (T1, T2, T3, etc.) I want to concatenate its different tables.&lt;/P&gt;
&lt;P&gt;I do the data step correctly with the set instruction. But I get empty lines. On the documentation, it states to see the types of certain variables and to order the variables. I've done it but I still get empty observations.&lt;BR /&gt;I cannot send an extract of the bases because I cannot find the examples that I know how to create to reflect the problem. Thank you for understanding.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anyone give me some hints ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;THANKS.&lt;BR /&gt;Gick&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 04:49:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Concatenation-of-several-tables-with-the-same-variable-names-but/m-p/905303#M357578</guid>
      <dc:creator>Gick</dc:creator>
      <dc:date>2023-11-30T04:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenation of several tables with the same variable names but some are of different types bet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Concatenation-of-several-tables-with-the-same-variable-names-but/m-p/905305#M357580</link>
      <description>&lt;P&gt;Please post the complete log of your DATA step, and describe in detail what you mean by "empty lines".&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 05:49:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Concatenation-of-several-tables-with-the-same-variable-names-but/m-p/905305#M357580</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-11-30T05:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenation of several tables with the same variable names but some are of different types bet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Concatenation-of-several-tables-with-the-same-variable-names-but/m-p/905319#M357584</link>
      <description>Same name but different data type, that won't work properly.&lt;BR /&gt;One way managing things is to create view(s) to align the data sets so they look the same (variable names, data types, lenghts).</description>
      <pubDate>Thu, 30 Nov 2023 08:23:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Concatenation-of-several-tables-with-the-same-variable-names-but/m-p/905319#M357584</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2023-11-30T08:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenation of several tables with the same variable names but some are of different types bet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Concatenation-of-several-tables-with-the-same-variable-names-but/m-p/905332#M357586</link>
      <description>For certain variables, I have missing data even though all my tables are filled.</description>
      <pubDate>Thu, 30 Nov 2023 10:12:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Concatenation-of-several-tables-with-the-same-variable-names-but/m-p/905332#M357586</guid>
      <dc:creator>Gick</dc:creator>
      <dc:date>2023-11-30T10:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenation of several tables with the same variable names but some are of different types bet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Concatenation-of-several-tables-with-the-same-variable-names-but/m-p/905333#M357587</link>
      <description>I also did what you just said.</description>
      <pubDate>Thu, 30 Nov 2023 10:13:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Concatenation-of-several-tables-with-the-same-variable-names-but/m-p/905333#M357587</guid>
      <dc:creator>Gick</dc:creator>
      <dc:date>2023-11-30T10:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenation of several tables with the same variable names but some are of different types bet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Concatenation-of-several-tables-with-the-same-variable-names-but/m-p/905344#M357593</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/416124"&gt;@Gick&lt;/a&gt;&amp;nbsp;Put yourself into our shoes and try to imagine if you really could say what you're doing with the depth and breath of information you've provided so far. Thank you for your understanding.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 13:04:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Concatenation-of-several-tables-with-the-same-variable-names-but/m-p/905344#M357593</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-11-30T13:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenation of several tables with the same variable names but some are of different types bet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Concatenation-of-several-tables-with-the-same-variable-names-but/m-p/905379#M357606</link>
      <description>&lt;P&gt;I'm going to repeat something in a bit more detail that you aren't paying attention to:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If variables of the same name are of different data types then one or more sets of the values will be missing in the output because a variable can only be ONE TYPE in a data set, either character or numeric. If you try to put an "ABC" into a variable that is numeric it will always fail, result in a missing value and generally the &lt;STRONG&gt;log&lt;/STRONG&gt; will tell you that you did something wrong.&lt;/P&gt;
&lt;P&gt;In this case I would expect an error such as this shows from attempting to combine two sets with the same named variable of different types:&lt;/P&gt;
&lt;PRE&gt;196  data one;
197    x=123;
198  run;

NOTE: The data set WORK.ONE has 1 observations and 1 variables.
NOTE: DATA statement used (Total process time):
      real time           0.01 seconds
      cpu time            0.00 seconds


199
200  data two;
201    x='ABC';
202  run;

NOTE: The data set WORK.TWO has 1 observations and 1 variables.
NOTE: DATA statement used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds


203
204  data combined;
205    set one
206        two
207    ;
ERROR: Variable x has been defined as both character and numeric.
208  run;

NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set WORK.COMBINED may be incomplete.  When this step was
         stopped there were 0 observations and 1 variables.
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds


&lt;/PRE&gt;
&lt;P&gt;Depending on what you have been doing, exact code and data sets you may be looking at an earlier data set as a result. But that is why we have asked you to show the LOG of your attempt, including the code and all the notes, messages, warnings and/or errors like above.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 15:58:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Concatenation-of-several-tables-with-the-same-variable-names-but/m-p/905379#M357606</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-11-30T15:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenation of several tables with the same variable names but some are of different types bet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Concatenation-of-several-tables-with-the-same-variable-names-but/m-p/905392#M357613</link>
      <description>How were these datasets created? Did you create them? If so, the best solution is to back up a step and avoid the issue in the first place.</description>
      <pubDate>Thu, 30 Nov 2023 17:37:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Concatenation-of-several-tables-with-the-same-variable-names-but/m-p/905392#M357613</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-11-30T17:37:08Z</dc:date>
    </item>
  </channel>
</rss>

