<?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 read SAS data sets in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/read-SAS-data-sets/m-p/399003#M96582</link>
    <description>&lt;P&gt;Given the SAS data set PRICES:&lt;BR /&gt;PRICES&lt;BR /&gt;Prodid priceproducttypesalesreturns&lt;BR /&gt;K1255.10NETWORK152&lt;BR /&gt;B132S 2.34HARDWARE30010&lt;BR /&gt;R18KY2 1.29SOFTWARE255&lt;BR /&gt;3KL8BY 6.37HARDWARE12515&lt;/P&gt;&lt;P&gt;DY65DW 5.60HARDWARE455&lt;/P&gt;&lt;P&gt;DGTY23 4.55HARDWARE672&lt;BR /&gt;&lt;STRONG&gt;The following SAS program is submitted:&lt;/STRONG&gt;&lt;BR /&gt;data hware inter cheap;&lt;BR /&gt;set prices(keep = productype price);&lt;BR /&gt;if producttype = ‘HARDWARE’ then output hware; else if producttype = ‘NETWORK’&lt;BR /&gt;then output&lt;BR /&gt;inter; if price le 5.00;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How many observations does the HWARE data set contain?&lt;/P&gt;&lt;P&gt;Ans is 4.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know there are 4 obs with Hardware, but will the "if price le 5.00" affects the answer? causing only those hardware with price le 5.00 get selected and change the answer to 2 observations. Please help, thanks!!!&lt;/P&gt;</description>
    <pubDate>Wed, 27 Sep 2017 02:36:40 GMT</pubDate>
    <dc:creator>pchen002</dc:creator>
    <dc:date>2017-09-27T02:36:40Z</dc:date>
    <item>
      <title>read SAS data sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/read-SAS-data-sets/m-p/399003#M96582</link>
      <description>&lt;P&gt;Given the SAS data set PRICES:&lt;BR /&gt;PRICES&lt;BR /&gt;Prodid priceproducttypesalesreturns&lt;BR /&gt;K1255.10NETWORK152&lt;BR /&gt;B132S 2.34HARDWARE30010&lt;BR /&gt;R18KY2 1.29SOFTWARE255&lt;BR /&gt;3KL8BY 6.37HARDWARE12515&lt;/P&gt;&lt;P&gt;DY65DW 5.60HARDWARE455&lt;/P&gt;&lt;P&gt;DGTY23 4.55HARDWARE672&lt;BR /&gt;&lt;STRONG&gt;The following SAS program is submitted:&lt;/STRONG&gt;&lt;BR /&gt;data hware inter cheap;&lt;BR /&gt;set prices(keep = productype price);&lt;BR /&gt;if producttype = ‘HARDWARE’ then output hware; else if producttype = ‘NETWORK’&lt;BR /&gt;then output&lt;BR /&gt;inter; if price le 5.00;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How many observations does the HWARE data set contain?&lt;/P&gt;&lt;P&gt;Ans is 4.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know there are 4 obs with Hardware, but will the "if price le 5.00" affects the answer? causing only those hardware with price le 5.00 get selected and change the answer to 2 observations. Please help, thanks!!!&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 02:36:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/read-SAS-data-sets/m-p/399003#M96582</guid>
      <dc:creator>pchen002</dc:creator>
      <dc:date>2017-09-27T02:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: read SAS data sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/read-SAS-data-sets/m-p/399007#M96584</link>
      <description>&lt;P&gt;You put the IF PRICE aafter the OUTPUT statement, therefor it will not affect the results and you get 4 obs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you change the code so that IF PRICE preceeds the OUTPUT statement it will affect it.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 03:03:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/read-SAS-data-sets/m-p/399007#M96584</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-09-27T03:03:35Z</dc:date>
    </item>
  </channel>
</rss>

