<?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: Error in Practice Questions provided by SAS? in Programming 1 and 2</title>
    <link>https://communities.sas.com/t5/Programming-1-and-2/Error-in-Practice-Questions-provided-by-SAS/m-p/873450#M1349</link>
    <description>Arghh, I'm such a newbie &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; Thanks so much! This really drove me nuts.</description>
    <pubDate>Tue, 02 May 2023 18:15:45 GMT</pubDate>
    <dc:creator>Sandra_Ilja</dc:creator>
    <dc:date>2023-05-02T18:15:45Z</dc:date>
    <item>
      <title>Error in Practice Questions provided by SAS?</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Error-in-Practice-Questions-provided-by-SAS/m-p/873398#M1347</link>
      <description>&lt;P&gt;Hi;&lt;/P&gt;&lt;P&gt;I'm currently preparing to take the Base Programming Certification. I downloaded 4 pages of exercises which I found somewhere on the SAS website (see attached file).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having an issue with project 2: I can answer question 4 correctly, but not Question 3 (Question 3: How many observations are classified into the “Lower” group? ). With my code:&lt;/P&gt;&lt;PRE&gt;data new;&lt;BR /&gt;set sashelp.shoes;&lt;BR /&gt;length salesrange $10.;&lt;BR /&gt;if (Sales &amp;gt;=0 AND sales &amp;lt; 100000) then salesrange="Lower";&lt;BR /&gt;else if (Sales &amp;gt;= 100000 AND Sales&amp;lt;= 200000) then salesrange="Middle";&lt;BR /&gt;else if sales &amp;gt; 200000 then salesrange="Upper";&lt;BR /&gt;run; &lt;BR /&gt;&lt;BR /&gt;proc print data=new;&lt;BR /&gt;where salesrange = "Lower";&lt;BR /&gt;run;&lt;/PRE&gt;&lt;P&gt;my answer for question 3 is 394, not, as the paper says, 288. Is this an error on the paper or did I make a mistake?&lt;/P&gt;&lt;P&gt;Any help is appreciated!&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 15:18:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Error-in-Practice-Questions-provided-by-SAS/m-p/873398#M1347</guid>
      <dc:creator>Sandra_Ilja</dc:creator>
      <dc:date>2023-05-02T15:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Practice Questions provided by SAS?</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Error-in-Practice-Questions-provided-by-SAS/m-p/873437#M1348</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=new;
    tables salesrange;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;produces this output&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;                                                                                  Cumulative    Cumulative
                                           salesrange    Frequency     Percent     Frequency      Percent
                                           ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
                                           Lower              288       72.91           288        72.91
                                           Middle              60       15.19           348        88.10
                                           Upper               47       11.90           395       100.00

&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so I would say the answer is 288. Your PROC PRINT has observation 394 as the last observation, but the observation numbers are not consecutive so there are not 394 observations printed. Also, the log for your PROC PRINT shows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;138   proc print data=new;
139   where salesrange = "Lower";
140   run;

NOTE: There were 288 observations read from the data set WORK.NEW.
      WHERE salesrange='Lower';
NOTE: PROCEDURE PRINT used (Total process time):
      real time           0.03 seconds
      cpu time            0.03 seconds


&lt;/PRE&gt;
&lt;P&gt;so 288 observations were printed.&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 17:22:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Error-in-Practice-Questions-provided-by-SAS/m-p/873437#M1348</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-05-02T17:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Practice Questions provided by SAS?</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Error-in-Practice-Questions-provided-by-SAS/m-p/873450#M1349</link>
      <description>Arghh, I'm such a newbie &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; Thanks so much! This really drove me nuts.</description>
      <pubDate>Tue, 02 May 2023 18:15:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Error-in-Practice-Questions-provided-by-SAS/m-p/873450#M1349</guid>
      <dc:creator>Sandra_Ilja</dc:creator>
      <dc:date>2023-05-02T18:15:45Z</dc:date>
    </item>
  </channel>
</rss>

