<?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: SAS 9.4 scenario case 10 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-scenario-case-10/m-p/580570#M164933</link>
    <description>&lt;P&gt;And only 428 total observations in SASHELP.CARS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;At a minimum You need to show 1) any code used to create the data set you summarized and 2) the code used for the summary.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Aug 2019 15:01:18 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2019-08-12T15:01:18Z</dc:date>
    <item>
      <title>SAS 9.4 scenario case 10</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-scenario-case-10/m-p/580337#M164842</link>
      <description>&lt;P&gt;For the 1st "Test your code" question in scenario case 10:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;1. What is the number of observations where the variable Type is Sedan?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The answer is showing obs:262.&lt;/P&gt;&lt;P&gt;However, I have obs:405.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it because the source data updated or I missed any step?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advanced.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Aug 2019 05:43:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-scenario-case-10/m-p/580337#M164842</guid>
      <dc:creator>Teeleaf</dc:creator>
      <dc:date>2019-08-10T05:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 scenario case 10</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-scenario-case-10/m-p/580358#M164851</link>
      <description>Hi: Can you provide some context for the question. Where did the question come from? Are you working in Programming 1? If so, what Lesson is the question in? Are you working on something else? Homework? Practice exam? If the Practice Exam, is it the Pearson VUE Practice Exam or the SAS Practice Exam. What is the WHOLE question? There must be code that you wrote to derive your answer? Was there starter code or suggested code? What was that code?&lt;BR /&gt;&lt;BR /&gt;Without knowing the name of the data set you're using, it could be SASHELP.CARS, it could be some other file -- it's hard to provide any meaningful feedback.&lt;BR /&gt;&lt;BR /&gt;Cynthia</description>
      <pubDate>Sat, 10 Aug 2019 14:09:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-scenario-case-10/m-p/580358#M164851</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-08-10T14:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 scenario case 10</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-scenario-case-10/m-p/580465#M164900</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/279523"&gt;@Teeleaf&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;For the 1st "Test your code" question in scenario case 10:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;1. What is the number of observations where the variable Type is Sedan?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The answer is showing obs:262.&lt;/P&gt;
&lt;P&gt;However, I have obs:405.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it because the source data updated or I missed any step?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advanced.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Then, most likely something is wrong with your code. In sashelp.cars are only 262 obs with type = "Sedan".&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2019 06:26:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-scenario-case-10/m-p/580465#M164900</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2019-08-12T06:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 scenario case 10</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-scenario-case-10/m-p/580570#M164933</link>
      <description>&lt;P&gt;And only 428 total observations in SASHELP.CARS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;At a minimum You need to show 1) any code used to create the data set you summarized and 2) the code used for the summary.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2019 15:01:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-scenario-case-10/m-p/580570#M164933</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-08-12T15:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 scenario case 10</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-scenario-case-10/m-p/580979#M165080</link>
      <description>&lt;P&gt;Thanks so much all !!&lt;/P&gt;&lt;P&gt;I think I misunderstood the question.&lt;/P&gt;&lt;P&gt;I think the question is asking the total number of observations&amp;nbsp;where the variable Type is Sedan.&lt;/P&gt;&lt;P&gt;Not the number of observations where the variable type is sedan that&amp;nbsp;With Average MPG Over 40.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To be more detail, i will provide the question and the code from answer key below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Here is the question:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Open the ehs02 program from the EHS folder and correct the errors in the program below.&lt;BR /&gt;Example Code 2 ehs02 Program: Fix the Errors&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; work.mycars;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;set sashelp.cars;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;AvgMPG=mean(mpg_city, mpg_highway);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;run;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;title 'Cars With Average MPG Over 40';&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;proc print data=work.mycars&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var make model type avgmpg;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;where AvgMPG&amp;gt;40;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;run;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;title 'Average MPG by Car Type';&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;proc means data=work.mycars avg min max maxdec=1;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var avgmpg;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;class type;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;run;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;title;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Test Your Code:&lt;BR /&gt;1. What is the number of observations where the variable Type is Sedan?&lt;BR /&gt;2. How many observations are printed to the report titled, “Cars With Average MPG Over 40”?&lt;/P&gt;&lt;P&gt;Objectives Accomplished:&lt;BR /&gt;• Identify the characteristics of SAS statements.&lt;BR /&gt;• Define SAS syntax rules and identify common syntax errors such as misspelled keywords, unmatched quotation marks,&lt;BR /&gt;missing semicolons, and invalid options.&lt;BR /&gt;• Use the log to help diagnose syntax errors in a given program.&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;below is the code from the answer keys&lt;/STRONG&gt;&lt;/U&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;data work.mycars;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;set sashelp.cars;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;AvgMPG=mean(mpg_city, mpg_highway);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;run;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;title "Cars with Average MPG Over 40";&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;proc print data=work.mycars;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var make model type avgmpg;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; where AvgMPG&amp;gt;40;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;run;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;title "Average MPG by Car Type";&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;proc means data=work.mycars mean min max maxdec=1;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var avgmpg;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; class type;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; title;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 05:28:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-scenario-case-10/m-p/580979#M165080</guid>
      <dc:creator>Teeleaf</dc:creator>
      <dc:date>2019-08-14T05:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 scenario case 10</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-scenario-case-10/m-p/580980#M165081</link>
      <description>&lt;P&gt;Thanks so much all !!&lt;/P&gt;&lt;P&gt;I think I misunderstood the question.&lt;/P&gt;&lt;P&gt;I think the question is asking the total number of observations&amp;nbsp;where the variable Type is Sedan.&lt;/P&gt;&lt;P&gt;Not the number of observations where the variable type is sedan that&amp;nbsp;With Average MPG Over 40.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To be more detail, i will provide the question and the code from answer key below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Here is the question:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Open the ehs02 program from the EHS folder and correct the errors in the program below.&lt;BR /&gt;Example Code 2 ehs02 Program: Fix the Errors&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; work.mycars;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;set sashelp.cars;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;AvgMPG=mean(mpg_city, mpg_highway);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;run;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;title 'Cars With Average MPG Over 40';&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;proc print data=work.mycars&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var make model type avgmpg;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;where AvgMPG&amp;gt;40;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;run;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;title 'Average MPG by Car Type';&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;proc means data=work.mycars avg min max maxdec=1;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var avgmpg;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;class type;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;run;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;title;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Test Your Code:&lt;BR /&gt;1. What is the number of observations where the variable Type is Sedan?&lt;BR /&gt;2. How many observations are printed to the report titled, “Cars With Average MPG Over 40”?&lt;/P&gt;&lt;P&gt;Objectives Accomplished:&lt;BR /&gt;• Identify the characteristics of SAS statements.&lt;BR /&gt;• Define SAS syntax rules and identify common syntax errors such as misspelled keywords, unmatched quotation marks,&lt;BR /&gt;missing semicolons, and invalid options.&lt;BR /&gt;• Use the log to help diagnose syntax errors in a given program.&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;below is the code from the answer keys&lt;/STRONG&gt;&lt;/U&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;data work.mycars;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;set sashelp.cars;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;AvgMPG=mean(mpg_city, mpg_highway);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;run;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;title "Cars with Average MPG Over 40";&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;proc print data=work.mycars;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var make model type avgmpg;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; where AvgMPG&amp;gt;40;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;run;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;title "Average MPG by Car Type";&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;proc means data=work.mycars mean min max maxdec=1;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var avgmpg;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; class type;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; title;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 05:30:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-scenario-case-10/m-p/580980#M165081</guid>
      <dc:creator>Teeleaf</dc:creator>
      <dc:date>2019-08-14T05:30:05Z</dc:date>
    </item>
  </channel>
</rss>

