<?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: Merge and what is output? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Merge-and-what-is-output/m-p/861002#M340112</link>
    <description>&lt;P&gt;Hello Kurt,&lt;/P&gt;
&lt;P&gt;That is what I try to say. The last statement is not needed at all. I did what paigemiller suggested, All the cases of two tables are discussed earlier, so, that last&amp;nbsp;statement is not needed, and it is not correct at all. I kind of knew that before I posted my question, I wanted to make sure.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Blue&lt;/P&gt;</description>
    <pubDate>Mon, 27 Feb 2023 06:15:17 GMT</pubDate>
    <dc:creator>GN0001</dc:creator>
    <dc:date>2023-02-27T06:15:17Z</dc:date>
    <item>
      <title>Merge and what is output?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merge-and-what-is-output/m-p/860961#M340094</link>
      <description>&lt;PRE&gt;merge old(in=a) trap(in=b);
 by this that;
 if a and not b then check='Only l';
 if b and not a then check='Only n';
 if a and b then check='Match';
 if a or b  then output;
run;&lt;/PRE&gt;
&lt;P&gt;Hello team,&lt;/P&gt;
&lt;P&gt;Will "if a or b then output" be back in the result only? Please advise.&lt;/P&gt;
&lt;P&gt;Respectfully,&lt;/P&gt;
&lt;P&gt;blueinthesky&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Feb 2023 20:07:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merge-and-what-is-output/m-p/860961#M340094</guid>
      <dc:creator>GN0001</dc:creator>
      <dc:date>2023-02-26T20:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Merge and what is output?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merge-and-what-is-output/m-p/860962#M340095</link>
      <description>&lt;P&gt;Ask yourself:"what does the OUTPUT statement do?"&lt;/P&gt;
&lt;P&gt;You'll have your answer.&lt;/P&gt;
&lt;P&gt;And then ask yourself if the statement is necessary at all. Can there ever be a case where neither a nor b is true?&lt;/P&gt;</description>
      <pubDate>Sun, 26 Feb 2023 20:12:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merge-and-what-is-output/m-p/860962#M340095</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-02-26T20:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Merge and what is output?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merge-and-what-is-output/m-p/860974#M340099</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/202329"&gt;@GN0001&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;PRE&gt;merge old(in=a) trap(in=b);
 by this that;
 if a and not b then check='Only l';
 if b and not a then check='Only n';
 if a and b then check='Match';
 if a or b  then output;
run;&lt;/PRE&gt;
&lt;P&gt;Hello team,&lt;/P&gt;
&lt;P&gt;Will "if a or b then output" be back in the result only? Please advise.&lt;/P&gt;
&lt;P&gt;Respectfully,&lt;/P&gt;
&lt;P&gt;blueinthesky&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This is the exact type of problem you should try yourself, and see what happens. If you take SASHELP.CLASS and remove a few rows and create data set A, then take SASHELP.CLASS and remove other rows and create data set B, then merge by NAME, you will see what happens.&lt;/P&gt;</description>
      <pubDate>Sun, 26 Feb 2023 23:05:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merge-and-what-is-output/m-p/860974#M340099</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-02-26T23:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: Merge and what is output?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merge-and-what-is-output/m-p/860993#M340105</link>
      <description>Thanks for response. Why do you mean remove? Do you mean to create a subset? &lt;BR /&gt;Thanks one more time.&lt;BR /&gt;Blue blue</description>
      <pubDate>Mon, 27 Feb 2023 03:48:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merge-and-what-is-output/m-p/860993#M340105</guid>
      <dc:creator>GN0001</dc:creator>
      <dc:date>2023-02-27T03:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: Merge and what is output?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merge-and-what-is-output/m-p/860994#M340106</link>
      <description>Can you please explain a little bit more? &lt;BR /&gt;Thanks&lt;BR /&gt;Blue</description>
      <pubDate>Mon, 27 Feb 2023 03:50:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merge-and-what-is-output/m-p/860994#M340106</guid>
      <dc:creator>GN0001</dc:creator>
      <dc:date>2023-02-27T03:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: Merge and what is output?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merge-and-what-is-output/m-p/860999#M340109</link>
      <description>&lt;P&gt;I gave you two questions. Answer them.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 05:54:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merge-and-what-is-output/m-p/860999#M340109</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-02-27T05:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Merge and what is output?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merge-and-what-is-output/m-p/861002#M340112</link>
      <description>&lt;P&gt;Hello Kurt,&lt;/P&gt;
&lt;P&gt;That is what I try to say. The last statement is not needed at all. I did what paigemiller suggested, All the cases of two tables are discussed earlier, so, that last&amp;nbsp;statement is not needed, and it is not correct at all. I kind of knew that before I posted my question, I wanted to make sure.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Blue&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 06:15:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merge-and-what-is-output/m-p/861002#M340112</guid>
      <dc:creator>GN0001</dc:creator>
      <dc:date>2023-02-27T06:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Merge and what is output?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merge-and-what-is-output/m-p/861042#M340126</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/202329"&gt;@GN0001&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello Kurt,&lt;/P&gt;
&lt;P&gt;That is what I try to say. The last statement is not needed at all. I did what paigemiller suggested, All the cases of two tables are discussed earlier, so, that last&amp;nbsp;statement is not needed, and it is not correct at all. I kind of knew that before I posted my question, I wanted to make sure.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Blue&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This is where I wanted to lead you. If your question had been "I do not think that the last IF statement is needed. Is this correct?" my answer would simply have been "Yes, you are right".&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 10:34:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merge-and-what-is-output/m-p/861042#M340126</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-02-27T10:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Merge and what is output?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merge-and-what-is-output/m-p/861049#M340129</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/202329"&gt;@GN0001&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Thanks for response. Why do you mean remove? Do you mean to create a subset? &lt;BR /&gt;Thanks one more time.&lt;BR /&gt;Blue blue&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;SASHELP.CLASS has 19 rows. If you remove some rows, the new data set has fewer than 19.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 11:20:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merge-and-what-is-output/m-p/861049#M340129</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-02-27T11:20:00Z</dc:date>
    </item>
  </channel>
</rss>

