<?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: proc means #ways statement in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-means-ways-statement/m-p/935126#M367668</link>
    <description>&lt;P&gt;Where are the missing values? Are they missing for RainDays or TotalRain? If so, then your original data has missing values, or your data has lots of zero which are excluded by your code's WHERE statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the missing values are somewhere else, show us the output.&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jul 2024 11:10:27 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2024-07-09T11:10:27Z</dc:date>
    <item>
      <title>proc means #ways statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-means-ways-statement/m-p/935125#M367667</link>
      <description>&lt;PRE&gt;proc means data=pg1.np_westweather noprint; 
    where Precip ne 0; 
    var Precip; 
    class Name Year; 
    ways 2; 
    output out=rainstats n=RainDays sum=TotalRain; 
run; 
 
title1 'Rain Statistics by Year and Park'; 
proc print data=rainstats label noobs; 
    var Name Year RainDays TotalRain; 
    label Name='Park Name' 
          RainDays='Number of Days Raining' 
          TotalRain='Total Rain Amount (inches)'; 
run; 
title; &lt;/PRE&gt;&lt;P&gt;what this program actually do it gives sometime the missing values ?!&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 11:06:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-means-ways-statement/m-p/935125#M367667</guid>
      <dc:creator>Bhagyalakshmi</dc:creator>
      <dc:date>2024-07-09T11:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: proc means #ways statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-means-ways-statement/m-p/935126#M367668</link>
      <description>&lt;P&gt;Where are the missing values? Are they missing for RainDays or TotalRain? If so, then your original data has missing values, or your data has lots of zero which are excluded by your code's WHERE statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the missing values are somewhere else, show us the output.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 11:10:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-means-ways-statement/m-p/935126#M367668</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-07-09T11:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: proc means #ways statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-means-ways-statement/m-p/935127#M367669</link>
      <description>I used ways statement 2 i doesnt show any missing unless i used the following program by ways 0 1 only it show the some missing in year but not in name</description>
      <pubDate>Tue, 09 Jul 2024 11:11:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-means-ways-statement/m-p/935127#M367669</guid>
      <dc:creator>Bhagyalakshmi</dc:creator>
      <dc:date>2024-07-09T11:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: proc means #ways statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-means-ways-statement/m-p/935129#M367671</link>
      <description>&lt;P&gt;SHOW US what you are seeing. Show us the exact code that created the output you are showing us. Include your screen capture of the output by clicking on the "Insert Photos" icon. Do not attach files.&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="Capture.PNG" style="width: 879px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/91641i24282B42CFE94122/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 11:21:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-means-ways-statement/m-p/935129#M367671</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-07-09T11:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: proc means #ways statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-means-ways-statement/m-p/935133#M367672</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="this is  ways 0 option i gave in proc means step" style="width: 611px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98253i903F0A51C6C3D2D2/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="this is  ways 0 option i gave in proc means step" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;this is  ways 0 option i gave in proc means step&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="this is the ways  1 option i gave in proc means step" style="width: 873px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98254iFCB8D00AA4855746/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.jpg" alt="this is the ways  1 option i gave in proc means step" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;this is the ways  1 option i gave in proc means step&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="this is for ways 2 option i gave in proc means step" style="width: 855px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98255i3C45286566CB2276/image-size/large?v=v2&amp;amp;px=999" role="button" title="3.jpg" alt="this is for ways 2 option i gave in proc means step" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;this is for ways 2 option i gave in proc means step&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 11:40:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-means-ways-statement/m-p/935133#M367672</guid>
      <dc:creator>Bhagyalakshmi</dc:creator>
      <dc:date>2024-07-09T11:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: proc means #ways statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-means-ways-statement/m-p/935135#M367674</link>
      <description>&lt;P&gt;This looks correct to me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you specify WAYS 0, SAS does not slice the data by either ParkName or Year. You get the overall N and overall SUM, and so ParkName and Year are missing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you specify WAYS 1, SAS slices the data first by ParkName only (not&amp;nbsp; by Year, so year is missing) and the it slices the data by Year only (not by ParkName, so ParkName is missing).&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 11:44:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-means-ways-statement/m-p/935135#M367674</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-07-09T11:44:50Z</dc:date>
    </item>
  </channel>
</rss>

