<?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: Is this a syntax or a logic error? in SAS Certification</title>
    <link>https://communities.sas.com/t5/SAS-Certification/Is-this-a-syntax-or-a-logic-error/m-p/849849#M1470</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/418866"&gt;@Anne_A&lt;/a&gt;&amp;nbsp;, I took the exam early this year. I think you don't have to worry about theoretical discussions whether it's a logic or syntax error. It's a practise exam. I you know how to do the coding covered by the content guide, you will be fine.&lt;/P&gt;
&lt;P&gt;Best Luck anyway.&lt;/P&gt;
&lt;P&gt;Best&lt;/P&gt;
&lt;P&gt;Markus&lt;/P&gt;</description>
    <pubDate>Thu, 15 Dec 2022 12:38:05 GMT</pubDate>
    <dc:creator>MarkusWeick</dc:creator>
    <dc:date>2022-12-15T12:38:05Z</dc:date>
    <item>
      <title>Is this a syntax or a logic error?</title>
      <link>https://communities.sas.com/t5/SAS-Certification/Is-this-a-syntax-or-a-logic-error/m-p/849812#M1465</link>
      <description>&lt;P&gt;Hello SAS Community,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I need the average of 3 numbers I can use&lt;/P&gt;
&lt;P&gt;mean (number1, number2, number3)&lt;/P&gt;
&lt;P&gt;that will give me the average of the 3 variables&lt;/P&gt;
&lt;P&gt;If I use instead&amp;nbsp;&lt;/P&gt;
&lt;P&gt;mean (number1 + number2 + number3)&lt;/P&gt;
&lt;P&gt;SAS will (rightly) compute the sum of the 3 numbers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would you consider typing&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;mean (number1 + number2 + number3)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;if what I need is&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;mean (number1, number2, number3)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;a LOGIC or a SYNTAX error?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 09:44:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/Is-this-a-syntax-or-a-logic-error/m-p/849812#M1465</guid>
      <dc:creator>Anne_A</dc:creator>
      <dc:date>2022-12-15T09:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Is this a syntax or a logic error?</title>
      <link>https://communities.sas.com/t5/SAS-Certification/Is-this-a-syntax-or-a-logic-error/m-p/849814#M1466</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/418866"&gt;@Anne_A&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;without having more context, I would assume a logic error.&lt;/P&gt;
&lt;P&gt;Best&lt;/P&gt;
&lt;P&gt;Markus&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 09:46:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/Is-this-a-syntax-or-a-logic-error/m-p/849814#M1466</guid>
      <dc:creator>MarkusWeick</dc:creator>
      <dc:date>2022-12-15T09:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: Is this a syntax or a logic error?</title>
      <link>https://communities.sas.com/t5/SAS-Certification/Is-this-a-syntax-or-a-logic-error/m-p/849843#M1467</link>
      <description>&lt;P&gt;Thanks Markus,&lt;/P&gt;
&lt;P&gt;So would I. The thing is, in the SAS Certified Specialist prep guide (pp 63-64), this is provided as an example of syntax error - I was puzzled hence my question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot1.jpg" style="width: 643px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78572iA02BB31B1BEE3597/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot1.jpg" alt="Screenshot1.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot2.jpg" style="width: 797px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78573iD0E447851FEB7B23/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot2.jpg" alt="Screenshot2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I will keep considering this a logical error, praying for the exam questions not to be too close to the prep guide's content ...&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;.&lt;/P&gt;
&lt;P&gt;Cheers.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 12:08:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/Is-this-a-syntax-or-a-logic-error/m-p/849843#M1467</guid>
      <dc:creator>Anne_A</dc:creator>
      <dc:date>2022-12-15T12:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Is this a syntax or a logic error?</title>
      <link>https://communities.sas.com/t5/SAS-Certification/Is-this-a-syntax-or-a-logic-error/m-p/849844#M1468</link>
      <description>&lt;P&gt;If it was a syntax error, there would be errors in the LOG.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can type all sorts of ridiculous things into SAS that will not produce errors in the log, so they are not syntax errors, but most likely they are logic errors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But maybe the definition of "syntax error" is the human user types in the wrong code ... ? I hope not, that's what it sounds like they are looking for. Is there anywhere in the class notes that defines "syntax error"?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 12:30:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/Is-this-a-syntax-or-a-logic-error/m-p/849844#M1468</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-12-15T12:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: Is this a syntax or a logic error?</title>
      <link>https://communities.sas.com/t5/SAS-Certification/Is-this-a-syntax-or-a-logic-error/m-p/849848#M1469</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;So we all agree that this specific problem is indeed a logic error. Maybe an incomplete copy-paste-&lt;EM&gt;adapt&lt;/EM&gt; step in the book.&lt;/P&gt;
&lt;P&gt;Cheers.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 12:34:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/Is-this-a-syntax-or-a-logic-error/m-p/849848#M1469</guid>
      <dc:creator>Anne_A</dc:creator>
      <dc:date>2022-12-15T12:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: Is this a syntax or a logic error?</title>
      <link>https://communities.sas.com/t5/SAS-Certification/Is-this-a-syntax-or-a-logic-error/m-p/849849#M1470</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/418866"&gt;@Anne_A&lt;/a&gt;&amp;nbsp;, I took the exam early this year. I think you don't have to worry about theoretical discussions whether it's a logic or syntax error. It's a practise exam. I you know how to do the coding covered by the content guide, you will be fine.&lt;/P&gt;
&lt;P&gt;Best Luck anyway.&lt;/P&gt;
&lt;P&gt;Best&lt;/P&gt;
&lt;P&gt;Markus&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 12:38:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/Is-this-a-syntax-or-a-logic-error/m-p/849849#M1470</guid>
      <dc:creator>MarkusWeick</dc:creator>
      <dc:date>2022-12-15T12:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Is this a syntax or a logic error?</title>
      <link>https://communities.sas.com/t5/SAS-Certification/Is-this-a-syntax-or-a-logic-error/m-p/849898#M1471</link>
      <description>&lt;P&gt;One thing to consider, besides basic mean , is that when you use&lt;/P&gt;
&lt;PRE&gt; (number1 + number2 + number3)&lt;/PRE&gt;
&lt;P&gt;The result will be missing if any of the 3 variables have a missing value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Consider this code. Run it and compare the results of the two Vmean variables.&lt;/P&gt;
&lt;PRE&gt;data example;
    input v1 - v3;
   /* function mean*/
    vmean1= mean(v1,v2,v3);
   /* manual calculation for mean*/
    vmean2= (v1 + v2 + v3) / 3;
datalines;
1 2 3
1 2 .
. . .
;&lt;/PRE&gt;
&lt;P&gt;So which construct you might use, function vs manual calculation, may depend on the need of your code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 16:05:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/Is-this-a-syntax-or-a-logic-error/m-p/849898#M1471</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-12-15T16:05:07Z</dc:date>
    </item>
  </channel>
</rss>

