<?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: frequency table using format by date in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/frequency-table-using-format-by-date/m-p/743200#M232621</link>
    <description>this doesn't answer my question??</description>
    <pubDate>Sun, 23 May 2021 09:12:00 GMT</pubDate>
    <dc:creator>sasprogramming</dc:creator>
    <dc:date>2021-05-23T09:12:00Z</dc:date>
    <item>
      <title>frequency table using format by date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/frequency-table-using-format-by-date/m-p/743186#M232608</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc format;
value income_format
low -&amp;lt; 0 = "low"
1 -&amp;lt; 30 = "low-medium"
30 -&amp;lt; 60 = "average"
60 -&amp;lt; 90 = "high"
90 - high = "excellent";
run;



proc freq data = lib1.all;
format income income_format.; /* assign IncomeFmt format to Income variable */
tables income
/OUT = income_table outcum ;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&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="sasprogramming_0-1621736469184.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59689iC762AFF72EBE236D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sasprogramming_0-1621736469184.png" alt="sasprogramming_0-1621736469184.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The above code creates custom bins for certain level of incomes, I think create a table to put my data into the custom bins. This all works fine, however I wan't to be able to create the above frequency table by date, my data is monthly and I have a field called DATE. How do I achieve this? Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 23 May 2021 02:23:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/frequency-table-using-format-by-date/m-p/743186#M232608</guid>
      <dc:creator>sasprogramming</dc:creator>
      <dc:date>2021-05-23T02:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: frequency table using format by date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/frequency-table-using-format-by-date/m-p/743188#M232609</link>
      <description>&lt;P&gt;Use any one of the date formats that only displays the year and month.&amp;nbsp; Like YYMMD.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/vdmmlcdc/8.1/ds2pg/p0bz5detpfj01qn1kz2in7xymkdl.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/vdmmlcdc/8.1/ds2pg/p0bz5detpfj01qn1kz2in7xymkdl.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 23 May 2021 02:36:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/frequency-table-using-format-by-date/m-p/743188#M232609</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-05-23T02:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: frequency table using format by date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/frequency-table-using-format-by-date/m-p/743200#M232621</link>
      <description>this doesn't answer my question??</description>
      <pubDate>Sun, 23 May 2021 09:12:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/frequency-table-using-format-by-date/m-p/743200#M232621</guid>
      <dc:creator>sasprogramming</dc:creator>
      <dc:date>2021-05-23T09:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: frequency table using format by date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/frequency-table-using-format-by-date/m-p/743206#M232625</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/302184"&gt;@sasprogramming&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;this doesn't answer my question??&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Try it, i.e. use YYMMD7. as the format in proc freq.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you'll see that it does answer your question.&lt;/P&gt;</description>
      <pubDate>Sun, 23 May 2021 11:03:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/frequency-table-using-format-by-date/m-p/743206#M232625</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2021-05-23T11:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: frequency table using format by date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/frequency-table-using-format-by-date/m-p/743207#M232626</link>
      <description>&lt;P&gt;Unless, of course, we have a Maxim 42 issue here &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 23 May 2021 11:08:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/frequency-table-using-format-by-date/m-p/743207#M232626</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-05-23T11:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: frequency table using format by date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/frequency-table-using-format-by-date/m-p/743211#M232630</link>
      <description>&lt;P&gt;Found the solution thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc freq data = lib1.all;
format income income_format. DATE YYMMD7.;&lt;BR /&gt;by DATE;   
tables income 
/OUT = income outcum ;
run;&lt;/PRE&gt;
&lt;P&gt;Your answer was just missing specifying to use the `by` line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 23 May 2021 13:34:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/frequency-table-using-format-by-date/m-p/743211#M232630</guid>
      <dc:creator>sasprogramming</dc:creator>
      <dc:date>2021-05-23T13:34:12Z</dc:date>
    </item>
  </channel>
</rss>

