<?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 Counting observations in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Counting-observations/m-p/265011#M52041</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data count;&lt;BR /&gt;input Age Salary;&lt;BR /&gt;datalines;&lt;BR /&gt;30 20000&lt;BR /&gt;31 20600&lt;BR /&gt;32 35000&lt;BR /&gt;35 50000&lt;BR /&gt;36 50000&lt;BR /&gt;31 36500&lt;BR /&gt;40 50000&lt;BR /&gt;30 80000&lt;BR /&gt;36 50000&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to get output as below&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FRQ&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;30-35 &amp;nbsp; 6&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;36-40 &amp;nbsp; 3&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please help me with this.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Apr 2016 06:17:17 GMT</pubDate>
    <dc:creator>KafeelBasha</dc:creator>
    <dc:date>2016-04-20T06:17:17Z</dc:date>
    <item>
      <title>Counting observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Counting-observations/m-p/265011#M52041</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data count;&lt;BR /&gt;input Age Salary;&lt;BR /&gt;datalines;&lt;BR /&gt;30 20000&lt;BR /&gt;31 20600&lt;BR /&gt;32 35000&lt;BR /&gt;35 50000&lt;BR /&gt;36 50000&lt;BR /&gt;31 36500&lt;BR /&gt;40 50000&lt;BR /&gt;30 80000&lt;BR /&gt;36 50000&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to get output as below&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FRQ&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;30-35 &amp;nbsp; 6&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;36-40 &amp;nbsp; 3&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please help me with this.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2016 06:17:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Counting-observations/m-p/265011#M52041</guid>
      <dc:creator>KafeelBasha</dc:creator>
      <dc:date>2016-04-20T06:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: Counting observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Counting-observations/m-p/265014#M52042</link>
      <description>&lt;P&gt;1. Create a new variable that has your ranges, then run proc freq/tabulate. This you can try on your own.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Use a format and run proc freq/tabulate. This is illustrated below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
value age_fmt
30 - 35 = '30 to 35'
36 - 40 = '36 to 40';
run;

proc freq data=count;
format age age_fmt.;
table age/out=want;
run;

*output table want is also created if you want a data set;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Apr 2016 06:31:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Counting-observations/m-p/265014#M52042</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-04-20T06:31:21Z</dc:date>
    </item>
  </channel>
</rss>

