<?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: Base Prep Ch.12 Quiz 6 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Base-Prep-Ch-12-Quiz-6/m-p/470120#M120334</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/213598"&gt;@ericliuzh1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tested the codes in SAS and did generate one observation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Show the actual code you ran and the content of data set b.&lt;/P&gt;
&lt;P&gt;I suspect &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt;&amp;nbsp;points to the difference between your code and the question.&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jun 2018 20:54:58 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2018-06-13T20:54:58Z</dc:date>
    <item>
      <title>Base Prep Ch.12 Quiz 6</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Base-Prep-Ch-12-Quiz-6/m-p/470106#M120321</link>
      <description>&lt;P&gt;#6 Assume the data set has 5 or more observations, what is the result of submitting the following program?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data a;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; obsn=5;&lt;/P&gt;&lt;P&gt;set b (keep=var1 var2) point=obsn;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; stop;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;a. an error&lt;/P&gt;&lt;P&gt;b. an empty data set&lt;/P&gt;&lt;P&gt;c. a continuous loop&lt;/P&gt;&lt;P&gt;d. a data set that contains one observation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My answer is D. but the answer key is A. according to the answer key: when you use the KEEP= data set option and the POINT= option with the OUTPUT and STOP statements, your program cannot write out a single observation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tested the codes in SAS and did generate one observation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone verify my result for me?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 20:55:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Base-Prep-Ch-12-Quiz-6/m-p/470106#M120321</guid>
      <dc:creator>ericliuzh1</dc:creator>
      <dc:date>2018-06-13T20:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Base Prep Ch.12 Quiz 6</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Base-Prep-Ch-12-Quiz-6/m-p/470112#M120326</link>
      <description>&lt;P&gt;Which version of the study guide are you working with? Version 4?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 20:43:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Base-Prep-Ch-12-Quiz-6/m-p/470112#M120326</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-06-13T20:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Base Prep Ch.12 Quiz 6</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Base-Prep-Ch-12-Quiz-6/m-p/470113#M120327</link>
      <description>&lt;P&gt;It depends.&amp;nbsp; The program as posted will produce an error, because the variable name changed from OBSN to OBN.&amp;nbsp; But if the same name were to be used, you would get a single observation.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 20:43:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Base-Prep-Ch-12-Quiz-6/m-p/470113#M120327</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-06-13T20:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: Base Prep Ch.12 Quiz 6</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Base-Prep-Ch-12-Quiz-6/m-p/470120#M120334</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/213598"&gt;@ericliuzh1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tested the codes in SAS and did generate one observation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Show the actual code you ran and the content of data set b.&lt;/P&gt;
&lt;P&gt;I suspect &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt;&amp;nbsp;points to the difference between your code and the question.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 20:54:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Base-Prep-Ch-12-Quiz-6/m-p/470120#M120334</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-06-13T20:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: Base Prep Ch.12 Quiz 6</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Base-Prep-Ch-12-Quiz-6/m-p/470121#M120335</link>
      <description>&lt;P&gt;Yes, Version 4.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 20:55:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Base-Prep-Ch-12-Quiz-6/m-p/470121#M120335</guid>
      <dc:creator>ericliuzh1</dc:creator>
      <dc:date>2018-06-13T20:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Base Prep Ch.12 Quiz 6</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Base-Prep-Ch-12-Quiz-6/m-p/470122#M120336</link>
      <description>&lt;P&gt;Sorry, it was a typo. Same variable names.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 20:57:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Base-Prep-Ch-12-Quiz-6/m-p/470122#M120336</guid>
      <dc:creator>ericliuzh1</dc:creator>
      <dc:date>2018-06-13T20:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Base Prep Ch.12 Quiz 6</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Base-Prep-Ch-12-Quiz-6/m-p/470124#M120337</link>
      <description>&lt;P&gt;Will upload a snapshot tomorrow morning. Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 20:58:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Base-Prep-Ch-12-Quiz-6/m-p/470124#M120337</guid>
      <dc:creator>ericliuzh1</dc:creator>
      <dc:date>2018-06-13T20:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Base Prep Ch.12 Quiz 6</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Base-Prep-Ch-12-Quiz-6/m-p/470195#M120355</link>
      <description>&lt;P&gt;Maybe the preparation guide is outdated. Using 9.4m3 a dataset with one observation was created:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;12   data a;
13      obsn=5;
14
15      set sashelp.class(keep=Name Age) point=obsn;
16
17      output;
18      stop;
19   run;

NOTE: The data set WORK.A has 1 observations and 2 variables.
&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Jun 2018 05:44:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Base-Prep-Ch-12-Quiz-6/m-p/470195#M120355</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2018-06-14T05:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: Base Prep Ch.12 Quiz 6</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Base-Prep-Ch-12-Quiz-6/m-p/470266#M120383</link>
      <description>&lt;P&gt;Attached is the quiz question.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 11:57:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Base-Prep-Ch-12-Quiz-6/m-p/470266#M120383</guid>
      <dc:creator>ericliuzh1</dc:creator>
      <dc:date>2018-06-14T11:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Base Prep Ch.12 Quiz 6</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Base-Prep-Ch-12-Quiz-6/m-p/470366#M120393</link>
      <description>version 4 was just released, and that means it's sometimes a bit buggy &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;</description>
      <pubDate>Thu, 14 Jun 2018 16:22:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Base-Prep-Ch-12-Quiz-6/m-p/470366#M120393</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-06-14T16:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Base Prep Ch.12 Quiz 6</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Base-Prep-Ch-12-Quiz-6/m-p/470371#M120394</link>
      <description>&lt;P&gt;Looks like you found a mistake in the quiz. Perhaps they will give you cookie it you report it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that you also need to assume that the input dataset has at least the two variables listed in the KEEP= dataset option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/213598"&gt;@ericliuzh1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;#6 Assume the data set has 5 or more observations, what is the result of submitting the following program?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data a;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; obsn=5;&lt;/P&gt;
&lt;P&gt;set b (keep=var1 var2) point=obsn;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; output;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; stop;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;a. an error&lt;/P&gt;
&lt;P&gt;b. an empty data set&lt;/P&gt;
&lt;P&gt;c. a continuous loop&lt;/P&gt;
&lt;P&gt;d. a data set that contains one observation&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My answer is D. but the answer key is A. according to the answer key: when you use the KEEP= data set option and the POINT= option with the OUTPUT and STOP statements, your program cannot write out a single observation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tested the codes in SAS and did generate one observation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anyone verify my result for me?&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Eric&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 16:32:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Base-Prep-Ch-12-Quiz-6/m-p/470371#M120394</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-06-14T16:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: Base Prep Ch.12 Quiz 6</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Base-Prep-Ch-12-Quiz-6/m-p/470387#M120395</link>
      <description>&lt;P&gt;Agreed. Found another two errors. Now, I am confident with my answers. Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 17:29:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Base-Prep-Ch-12-Quiz-6/m-p/470387#M120395</guid>
      <dc:creator>ericliuzh1</dc:creator>
      <dc:date>2018-06-14T17:29:21Z</dc:date>
    </item>
  </channel>
</rss>

