<?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: WARNING: A table has been extended with null columns to perform the UNION set operation. in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/WARNING-A-table-has-been-extended-with-null-columns-to-perform/m-p/576280#M13042</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/124649"&gt;@bhanuprakash&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try Outer union corr&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc sql ;
select a.* from a
outer union corr
select b.* from b ;
quit ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 24 Jul 2019 17:29:53 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2019-07-24T17:29:53Z</dc:date>
    <item>
      <title>WARNING: A table has been extended with null columns to perform the UNION set operation.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/WARNING-A-table-has-been-extended-with-null-columns-to-perform/m-p/576272#M13037</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting the below warning when I execute the below mentioned SAS code. can you please tell me is there any standard way to overcome this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WARNING: A table has been extended with null columns to perform the UNION set operation.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SAS Code:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data a ;&lt;BR /&gt;a = 1 ;&lt;BR /&gt;b = 2 ;&lt;BR /&gt;run ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data b ;&lt;BR /&gt;a = 3 ;&lt;BR /&gt;b = 4 ;&lt;BR /&gt;c = 1 ;&lt;BR /&gt;run ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql ;&lt;BR /&gt;select a.* from a&lt;BR /&gt;union&lt;BR /&gt;select b.* from b ;&lt;BR /&gt;quit ;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 17:20:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/WARNING-A-table-has-been-extended-with-null-columns-to-perform/m-p/576272#M13037</guid>
      <dc:creator>bhanuprakash</dc:creator>
      <dc:date>2019-07-24T17:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: A table has been extended with null columns to perform the UNION set operation.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/WARNING-A-table-has-been-extended-with-null-columns-to-perform/m-p/576277#M13040</link>
      <description>&lt;P&gt;You always get the warning when the parts of a union do not have all columns in common.&lt;/P&gt;
&lt;P&gt;Extend your code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql ;
select a.*, . as c from a
union
select b.* from b ;
quit ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;so you have matching columns.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 17:26:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/WARNING-A-table-has-been-extended-with-null-columns-to-perform/m-p/576277#M13040</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-07-24T17:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: A table has been extended with null columns to perform the UNION set operation.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/WARNING-A-table-has-been-extended-with-null-columns-to-perform/m-p/576279#M13041</link>
      <description>Dear KurtBremser,&lt;BR /&gt;&lt;BR /&gt;I am sorry to say this but I am not expecting technique as I already programmed the same way. However when we have 100 variables then this technique will be difficult.&lt;BR /&gt;&lt;BR /&gt;can you please suggest any standard way.</description>
      <pubDate>Wed, 24 Jul 2019 17:28:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/WARNING-A-table-has-been-extended-with-null-columns-to-perform/m-p/576279#M13041</guid>
      <dc:creator>bhanuprakash</dc:creator>
      <dc:date>2019-07-24T17:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: A table has been extended with null columns to perform the UNION set operation.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/WARNING-A-table-has-been-extended-with-null-columns-to-perform/m-p/576280#M13042</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/124649"&gt;@bhanuprakash&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try Outer union corr&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc sql ;
select a.* from a
outer union corr
select b.* from b ;
quit ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 24 Jul 2019 17:29:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/WARNING-A-table-has-been-extended-with-null-columns-to-perform/m-p/576280#M13042</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-07-24T17:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: A table has been extended with null columns to perform the UNION set operation.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/WARNING-A-table-has-been-extended-with-null-columns-to-perform/m-p/576282#M13043</link>
      <description>&lt;P&gt;A safe bet is datastep regardless bcoz your PDV at compile time is a sweetheart&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;

set a b;

run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 17:33:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/WARNING-A-table-has-been-extended-with-null-columns-to-perform/m-p/576282#M13043</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-07-24T17:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: A table has been extended with null columns to perform the UNION set operation.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/WARNING-A-table-has-been-extended-with-null-columns-to-perform/m-p/576288#M13044</link>
      <description>&lt;P&gt;Is there chance to loose the quality in the ouput when I set/append the data by using the “outer union corr” procedure, apart from performance issue(processing time).&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 17:42:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/WARNING-A-table-has-been-extended-with-null-columns-to-perform/m-p/576288#M13044</guid>
      <dc:creator>bhanuprakash</dc:creator>
      <dc:date>2019-07-24T17:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: A table has been extended with null columns to perform the UNION set operation.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/WARNING-A-table-has-been-extended-with-null-columns-to-perform/m-p/576298#M13045</link>
      <description>&lt;P&gt;Quality is never compromised. However, there is something called &lt;STRONG&gt;"Best practices"&lt;/STRONG&gt;. So basically it's healthy to follow best practices so that our processes offer reading ease, easy to update, maintain etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Of course there are probably more than one way to accomplish things in SAS and yes we shall eventually get the result we want by doing in one way or another. However, that's when people like&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/21262"&gt;@hashman&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/462"&gt;@PGStats&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;&amp;nbsp; ,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15410"&gt;@data_null__&lt;/a&gt;&amp;nbsp;&amp;nbsp;etc(sorry can't list all) make the striking distinction. The notes that they offer along with the code and the details. Holy Jesus! I don't like them at all (lol). I am just extremely jealous.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I mentioned those names specifically ( coz&lt;STRONG&gt; they detail so much&lt;/STRONG&gt; that i really wonder why they want to share so much) for you to follow them , read their posts, understand. Sooner or later you will start contributing. All the best!&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 17:53:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/WARNING-A-table-has-been-extended-with-null-columns-to-perform/m-p/576298#M13045</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-07-24T17:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: A table has been extended with null columns to perform the UNION set operation.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/WARNING-A-table-has-been-extended-with-null-columns-to-perform/m-p/576304#M13046</link>
      <description>LOL .... Thank you so much for the info</description>
      <pubDate>Wed, 24 Jul 2019 18:00:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/WARNING-A-table-has-been-extended-with-null-columns-to-perform/m-p/576304#M13046</guid>
      <dc:creator>bhanuprakash</dc:creator>
      <dc:date>2019-07-24T18:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: A table has been extended with null columns to perform the UNION set operation.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/WARNING-A-table-has-been-extended-with-null-columns-to-perform/m-p/576314#M13048</link>
      <description>&lt;P&gt;Adding the OUTER keyword will let you keep the extra column, but it also will potentially keep duplicate observations that normal set operations would exclude.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Play around and see what you actually want.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
 set sashelp.class (obs=3);
 if _n_=1 then sex=' ';
run;


proc sql;
select name,age from test
union  
select name,age,sex from test
;
select name,age from test
union corr 
select name,age,sex from test
;
select name,age from test
outer union  
select name,age,sex from test
;
select name,age from test
outer union corr 
select name,age,sex from test
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 24 Jul 2019 18:25:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/WARNING-A-table-has-been-extended-with-null-columns-to-perform/m-p/576314#M13048</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-07-24T18:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: A table has been extended with null columns to perform the UNION set operation.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/WARNING-A-table-has-been-extended-with-null-columns-to-perform/m-p/576460#M13064</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/124649"&gt;@bhanuprakash&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Dear KurtBremser,&lt;BR /&gt;&lt;BR /&gt;I am sorry to say this but I am not expecting technique as I already programmed the same way. However when we have 100 variables then this technique will be difficult.&lt;BR /&gt;&lt;BR /&gt;can you please suggest any standard way.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you simply want to stack datasets, the data step is the tool of choice:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data c;
set a b;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;As you can see, it provides the shortest code possible.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 06:30:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/WARNING-A-table-has-been-extended-with-null-columns-to-perform/m-p/576460#M13064</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-07-25T06:30:05Z</dc:date>
    </item>
  </channel>
</rss>

