<?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: Question about an answer for Base Programming for SAS 9, 5th Edition in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Question-about-an-answer-for-Base-Programming-for-SAS-9-5th/m-p/495828#M130954</link>
    <description>&lt;P&gt;Maybe it's an educational trick. The authors knew: If they give a wrong answer, learners will think and discuss much longer about this exercise than they normally would -- until they're 100% sure that the printed answer must be wrong. Moreover, the feeling of success ("I'm a learner, but still I have spotted an error in the textbook") is a positive emotion, which can facilitate the learning process.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And yes, A is the correct answer.&lt;/P&gt;</description>
    <pubDate>Fri, 14 Sep 2018 22:18:03 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2018-09-14T22:18:03Z</dc:date>
    <item>
      <title>Question about an answer for Base Programming for SAS 9, 5th Edition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-about-an-answer-for-Base-Programming-for-SAS-9-5th/m-p/495824#M130950</link>
      <description>&lt;P&gt;I have a question about what the book says the answer should be.&amp;nbsp; It is Chapter 10 Quiz, Question 6. It goes as follows:&lt;/P&gt;&lt;DIV&gt;Q: Suppose you merge data sets Cert.Set1 and Cert.Set2 below:&amp;nbsp;&lt;DIV&gt;Q: Which output does the following program create?&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I picked A but it says the correct answer is C, even though C has ID 1129 in Set2 but not Set1, so seems like it would not qualify for the "if in1 and in2" portion. [Included a pfd photo of the Data sets]&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data work.merged;
   merge cert.set1(in=in1) cert.set2(in=in2);
   by id;
   if in1 and in2;
run;
proc print data=work.merged;
run;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 14 Sep 2018 20:44:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-about-an-answer-for-Base-Programming-for-SAS-9-5th/m-p/495824#M130950</guid>
      <dc:creator>CCraddock</dc:creator>
      <dc:date>2018-09-14T20:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Question about an answer for Base Programming for SAS 9, 5th Edition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-about-an-answer-for-Base-Programming-for-SAS-9-5th/m-p/495827#M130953</link>
      <description>&lt;P&gt;1) sometimes books have typos. Perhaps the CERT.SET1 id 1128 was supposed to be 1129 but check with the publisher for errata.&lt;/P&gt;
&lt;P&gt;Note the answer C also has the age for most of the IDS as not matching in Cert1. OR you checked an answer guide to the wrong question/ code example?&lt;/P&gt;
&lt;P&gt;I am not going to type that much data from a picture but the response C looks a lot more like it came from this code:&lt;/P&gt;
&lt;PRE&gt;data work.merged;
   merge cert.set2(in=in1) cert.set1(in=in2);
   if in1 and in2;
run;&lt;/PRE&gt;
&lt;P&gt;Notice there is no BY and the order of the sets is different. So the above matches the first record with the first record, regardless, and outputs the number of records that matches the smaller data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) create the data sets and run the code and then you'll know exactly what happens for that data.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 21:39:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-about-an-answer-for-Base-Programming-for-SAS-9-5th/m-p/495827#M130953</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-09-14T21:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Question about an answer for Base Programming for SAS 9, 5th Edition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-about-an-answer-for-Base-Programming-for-SAS-9-5th/m-p/495828#M130954</link>
      <description>&lt;P&gt;Maybe it's an educational trick. The authors knew: If they give a wrong answer, learners will think and discuss much longer about this exercise than they normally would -- until they're 100% sure that the printed answer must be wrong. Moreover, the feeling of success ("I'm a learner, but still I have spotted an error in the textbook") is a positive emotion, which can facilitate the learning process.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And yes, A is the correct answer.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 22:18:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-about-an-answer-for-Base-Programming-for-SAS-9-5th/m-p/495828#M130954</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2018-09-14T22:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Question about an answer for Base Programming for SAS 9, 5th Edition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-about-an-answer-for-Base-Programming-for-SAS-9-5th/m-p/495850#M130967</link>
      <description>&lt;P&gt;Somewhat related...this is a BRAND NEW edition.&amp;nbsp;Be prepared for stuff like that. I took the base certification in April and it was based on the 4th edition. When I was looking at the 4th edition, there were some similar issues with the chapter quizzes. Someone else I knew who was studying for the same exam had the book for the 3rd edition. There were multiple instances where the answer was A in the 3rd edition, but the same question had a different answer for A in the 4th edition and it was wrong. It definitely made me think about it more until I was convinced that I was right and the book was wrong.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I just looked at the table of contents for the fifth edition. I heard they were going to do this, but it looks like they don't have anything on reading in raw data!!! No column input, list input, formatted input. I don't see any pointer controls, creating variables with INPUT statements, missover options...nothing. None of that fun stuff! I'm not sure if that's covered in the exam, but not in the new edition.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, good luck. I'm glad I learned all that reading in raw data, but it was definitely a challenge to keep all the different input options straight, so IMO, you're lucky to be taking it now, assuming that's not in the exam.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 23:49:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-about-an-answer-for-Base-Programming-for-SAS-9-5th/m-p/495850#M130967</guid>
      <dc:creator>bobpep212</dc:creator>
      <dc:date>2018-09-14T23:49:31Z</dc:date>
    </item>
  </channel>
</rss>

