<?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 2 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-scenario-case-2/m-p/627676#M185332</link>
    <description>In this case in SAS Book 9.4 preparation, Is the code solution for scenario 2 wrong (page 395)?+&lt;BR /&gt;-------&lt;BR /&gt;One Direction is:&lt;BR /&gt;&lt;BR /&gt;• Remove observations with RestHR values that are greater than or equal to 70.&lt;BR /&gt;&lt;BR /&gt;data work.stress1;&lt;BR /&gt;set cert.stress;&lt;BR /&gt;where RestHR &amp;lt;=70;&lt;BR /&gt;* this line should be "WHERE RESTHR &amp;lt; 70"*;&lt;BR /&gt;TotalTime=(timemin*60)+timesec;&lt;BR /&gt;if TotalTime&amp;lt;600 then delete;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc print data=work.stress1;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;Answer for each question&lt;BR /&gt;Question 1: 4 observation&lt;BR /&gt;Question 2: NA because there are only 4 observation&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I appreciate any comment</description>
    <pubDate>Wed, 26 Feb 2020 21:13:39 GMT</pubDate>
    <dc:creator>monicaco</dc:creator>
    <dc:date>2020-02-26T21:13:39Z</dc:date>
    <item>
      <title>SAS 9.4 scenario case 2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-scenario-case-2/m-p/579234#M164400</link>
      <description>&lt;P&gt;In SAS 9.4 scenario 2, one of the condition is to "remove observations with RestHR values that are greater than or equal to 70."&lt;/P&gt;&lt;P&gt;This condition should be written like:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; where RestHR &amp;lt; 70;&lt;/P&gt;&lt;P&gt;or, the answer is correct and it should be like:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; where RestHR &amp;lt;= 70;&lt;/P&gt;&lt;P&gt;I just want to check if I understand the question correctly or if i misunderstood the operation sigh.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2019 21:04:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-scenario-case-2/m-p/579234#M164400</guid>
      <dc:creator>Teeleaf</dc:creator>
      <dc:date>2019-08-05T21:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 scenario case 2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-scenario-case-2/m-p/579238#M164401</link>
      <description>&lt;P&gt;&lt;EM&gt;Remove observations with RestHR values that are greater than or equal to 70&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;is the same as&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Keep observations with RestHR values that are smaller than 70&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;isn't it?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So:&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;FONT face="courier new,courier"&gt;where RestHR &amp;lt; 70;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Unless the where clause is used in a delete statement for example, in which case&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp;Remove observations with RestHR values that are greater than or equal to 70&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;is written&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;FONT face="courier new,courier"&gt;where RestHR &amp;gt;= 70;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2019 22:02:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-scenario-case-2/m-p/579238#M164401</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-08-05T22:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 scenario case 2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-scenario-case-2/m-p/627676#M185332</link>
      <description>In this case in SAS Book 9.4 preparation, Is the code solution for scenario 2 wrong (page 395)?+&lt;BR /&gt;-------&lt;BR /&gt;One Direction is:&lt;BR /&gt;&lt;BR /&gt;• Remove observations with RestHR values that are greater than or equal to 70.&lt;BR /&gt;&lt;BR /&gt;data work.stress1;&lt;BR /&gt;set cert.stress;&lt;BR /&gt;where RestHR &amp;lt;=70;&lt;BR /&gt;* this line should be "WHERE RESTHR &amp;lt; 70"*;&lt;BR /&gt;TotalTime=(timemin*60)+timesec;&lt;BR /&gt;if TotalTime&amp;lt;600 then delete;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc print data=work.stress1;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;Answer for each question&lt;BR /&gt;Question 1: 4 observation&lt;BR /&gt;Question 2: NA because there are only 4 observation&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I appreciate any comment</description>
      <pubDate>Wed, 26 Feb 2020 21:13:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-scenario-case-2/m-p/627676#M185332</guid>
      <dc:creator>monicaco</dc:creator>
      <dc:date>2020-02-26T21:13:39Z</dc:date>
    </item>
  </channel>
</rss>

