<?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 values after combining dataset with PROC SQL in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Missing-values-after-combining-dataset-with-PROC-SQL/m-p/826729#M326542</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;I'm getting missing values after combining these 3 dataset as seen on the attached photos. There are no missing values in the key variables. I really appreciate&amp;nbsp; anyone's help!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IMG_4695.jpg" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/74028iB34E657901E298CD/image-size/large?v=v2&amp;amp;px=999" role="button" title="IMG_4695.jpg" alt="IMG_4695.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IMG_4696.jpg" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/74029i9CA927DFF3CA81CB/image-size/large?v=v2&amp;amp;px=999" role="button" title="IMG_4696.jpg" alt="IMG_4696.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Aug 2022 21:38:14 GMT</pubDate>
    <dc:creator>Mariloud</dc:creator>
    <dc:date>2022-08-02T21:38:14Z</dc:date>
    <item>
      <title>Missing values after combining dataset with PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-values-after-combining-dataset-with-PROC-SQL/m-p/826729#M326542</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;I'm getting missing values after combining these 3 dataset as seen on the attached photos. There are no missing values in the key variables. I really appreciate&amp;nbsp; anyone's help!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IMG_4695.jpg" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/74028iB34E657901E298CD/image-size/large?v=v2&amp;amp;px=999" role="button" title="IMG_4695.jpg" alt="IMG_4695.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IMG_4696.jpg" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/74029i9CA927DFF3CA81CB/image-size/large?v=v2&amp;amp;px=999" role="button" title="IMG_4696.jpg" alt="IMG_4696.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 21:38:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-values-after-combining-dataset-with-PROC-SQL/m-p/826729#M326542</guid>
      <dc:creator>Mariloud</dc:creator>
      <dc:date>2022-08-02T21:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: Missing values after combining dataset with PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-values-after-combining-dataset-with-PROC-SQL/m-p/826733#M326545</link>
      <description>&lt;P&gt;Several possibilities that I can think of&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Data set A (content_) and data set C (reaction_types) do not have matching values of variable named TYPE. Could be spelling mismatches, or capitalization mismatches, or other types of mismatches.&lt;/LI&gt;
&lt;LI&gt;Variables Sentiment and Score are missing in data set C&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Naturally, we're just guessing. We wouldn't have to guess (a much better approach, IMHO) if you showed us parts of data set A (content_) and data set C (reaction_types) that you think should match.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 21:41:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-values-after-combining-dataset-with-PROC-SQL/m-p/826733#M326545</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-08-02T21:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Missing values after combining dataset with PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-values-after-combining-dataset-with-PROC-SQL/m-p/826735#M326547</link>
      <description>&lt;P&gt;Variables you're joining on, content_id or type have records in one data set but not the other exclusively. Since you're showing Sentiment and Score that are missing that means that Type is likely not the same in one data set as the other. This could be due to variables not being exactly the same (eg. "001" is not the same as "0001" or "1") or just missing from one data set.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 21:49:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-values-after-combining-dataset-with-PROC-SQL/m-p/826735#M326547</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-08-02T21:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Missing values after combining dataset with PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-values-after-combining-dataset-with-PROC-SQL/m-p/826752#M326555</link>
      <description>&lt;P&gt;When you use a construct such as&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From dataset1 as a&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; left join&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dataset2 as b&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on a.variable=b.variable&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you have requested ALL the records from A and data from B that passes the ON clause. So every record in A that does not have a match in B will have all the variable from B with missing values.&lt;/P&gt;
&lt;P&gt;If you do not want that behavior you can either use a different type of Join or add a where clause to require output records to have something present in the B data set possibly something like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; Where not missing(b.variable)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Depends exactly on what you want in the final output. When you start left joining multiple data sets the conditions may get complicated depending on your join conditions.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 22:54:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-values-after-combining-dataset-with-PROC-SQL/m-p/826752#M326555</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-08-02T22:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Missing values after combining dataset with PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-values-after-combining-dataset-with-PROC-SQL/m-p/826804#M326585</link>
      <description>&lt;P&gt;Maxim 3: Know Your Data.&lt;/P&gt;
&lt;P&gt;Check the key values from the resulting observations with missing values and inspect the lookup datasets for the keys you think should match, then decide how to proceed.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 07:36:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-values-after-combining-dataset-with-PROC-SQL/m-p/826804#M326585</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-08-03T07:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Missing values after combining dataset with PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-values-after-combining-dataset-with-PROC-SQL/m-p/827042#M326683</link>
      <description>&lt;P&gt;Thanks for replying! just realized that&amp;nbsp;&lt;SPAN&gt;Data set A (content_) and data set C (reaction_types) do not have matching&amp;nbsp;values in type as you&amp;nbsp; mention. It's actually reaction_ and reaction_types that have matching values in type.&amp;nbsp; Any tips on how to proceed at this point? here is the other part of the dataet&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IMG_4736.jpg" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/74093i68145C1A9FC40108/image-size/large?v=v2&amp;amp;px=999" role="button" title="IMG_4736.jpg" alt="IMG_4736.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 03:36:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-values-after-combining-dataset-with-PROC-SQL/m-p/827042#M326683</guid>
      <dc:creator>Mariloud</dc:creator>
      <dc:date>2022-08-04T03:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: Missing values after combining dataset with PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-values-after-combining-dataset-with-PROC-SQL/m-p/827044#M326684</link>
      <description>&lt;P&gt;Thanks for your reply! I am joining 3 dataset and just realized that&amp;nbsp;&lt;SPAN&gt;Data set A (content_) and data set C (reaction_types) do not have matching, only reaction_ and reaction_types do in type.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 03:41:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-values-after-combining-dataset-with-PROC-SQL/m-p/827044#M326684</guid>
      <dc:creator>Mariloud</dc:creator>
      <dc:date>2022-08-04T03:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Missing values after combining dataset with PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-values-after-combining-dataset-with-PROC-SQL/m-p/827045#M326685</link>
      <description>&lt;P&gt;thanks for replying!&amp;nbsp;&lt;SPAN&gt;Data set A (content_) and data set C (reaction_types) do not actually have matching, it's in reaction_ an reaction_types that have matching values in type. And I want to join them all 3.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 03:45:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-values-after-combining-dataset-with-PROC-SQL/m-p/827045#M326685</guid>
      <dc:creator>Mariloud</dc:creator>
      <dc:date>2022-08-04T03:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: Missing values after combining dataset with PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-values-after-combining-dataset-with-PROC-SQL/m-p/827103#M326695</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/90839"&gt;@Mariloud&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks for replying! just realized that&amp;nbsp;&lt;SPAN&gt;Data set A (content_) and data set C (reaction_types) do not have matching&amp;nbsp;values in type as you&amp;nbsp; mention. It's actually reaction_ and reaction_types that have matching values in type.&amp;nbsp; Any tips on how to proceed at this point? here is the other part of the dataet&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I guess you need to show us what should match. (And I don't really grasp what this screen capture has to do with the problem)&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 12:42:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-values-after-combining-dataset-with-PROC-SQL/m-p/827103#M326695</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-08-04T12:42:25Z</dc:date>
    </item>
  </channel>
</rss>

